Coverage for tests/conftest.py: 76%
17 statements
« prev ^ index » next coverage.py v7.2.1, created at 2024-07-25 16:40 +0300
« prev ^ index » next coverage.py v7.2.1, created at 2024-07-25 16:40 +0300
1from pytest import fixture
4@fixture(scope="session", params=[(2, 1, 1), (3, 2, 1)])
5def data_to_add(request):
6 yield request.param
9@fixture(scope="session", params=[(2, 3, 1), (3, 4, 1)])
10def data_to_sub(request):
11 yield request.param
14pkg_one_tests_finished = False
15pkg_two_tests_finished = False
18@fixture(scope="session")
19def signal_pkg_one_tests_finished():
20 global pkg_one_tests_finished
21 yield pkg_one_tests_finished
23 pkg_one_tests_finished = True
24 # yield pkg_one_tests_finished
27@fixture(scope="session")
28def signal_pkg_two_tests_finished():
29 global pkg_two_tests_finished
30 yield pkg_two_tests_finished
32 pkg_two_tests_finished = True