We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10858a9 commit 28e1d5aCopy full SHA for 28e1d5a
tests/conftest.py
@@ -30,7 +30,14 @@
30
def IsNow(*args: Any, **kwargs: Any) -> datetime: ...
31
def IsFloat(*args: Any, **kwargs: Any) -> float: ...
32
else:
33
- from dirty_equals import IsFloat, IsNow
+ from dirty_equals import IsFloat, IsNow as _IsNow
34
+
35
+ def IsNow(*args: Any, **kwargs: Any):
36
+ # Increase the default value of `delta` to 10 to reduce test flakiness on overburdened machines
37
+ if 'delta' not in kwargs:
38
+ kwargs['delta'] = 10
39
+ return _IsNow(*args, **kwargs)
40
41
42
try:
43
from logfire.testing import CaptureLogfire
0 commit comments