Skip to content

Commit a0d5c1b

Browse files
committed
allow for pytest to be used without testrunner
1 parent 8ff0bd7 commit a0d5c1b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/conftest.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
from runtests import setup_run_tests, teardown_run_tests
2+
3+
state = None
4+
5+
6+
def pytest_sessionstart(session):
7+
global state
8+
process_setup_args = (0, None, False, None)
9+
test_labels, state = setup_run_tests(*process_setup_args)
10+
11+
12+
def pytest_sessionfinish(session, exitstatus):
13+
teardown_run_tests(state)

0 commit comments

Comments
 (0)