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 1271f26 commit fee9f11Copy full SHA for fee9f11
code_to_optimize/tests/pytest/conftest.py.tmp
@@ -0,0 +1,14 @@
1
+import pytest
2
+import time
3
+
4
5
+@pytest.fixture(autouse=True)
6
+def fixture(request):
7
+ if request.node.get_closest_marker("no_autouse"):
8
+ # Skip the fixture logic
9
+ yield
10
+ else:
11
+ start_time = time.time()
12
+ time.sleep(0.1)
13
14
+ print(f"Took {time.time() - start_time} seconds")
0 commit comments