Skip to content

Commit fee9f11

Browse files
committed
wip
1 parent 1271f26 commit fee9f11

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
yield
14+
print(f"Took {time.time() - start_time} seconds")

0 commit comments

Comments
 (0)