2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +00:00

Make servers fixture in pytest module-wide

The servers are setup and torn down once per each test module. All the
logs and server state persists between individual tests within the same
module. The servers fixture representing these servers should be
module-wide as well.
This commit is contained in:
Nicki Křížek
2024-08-28 15:00:02 +02:00
committed by Michal Nowak
parent 100b759863
commit a72ff9fd57

View File

@@ -662,7 +662,7 @@ def system_test(
request.node.stash[FIXTURE_OK] = True
@pytest.fixture
@pytest.fixture(scope="module")
def servers(system_test_dir):
instances = {}
for entry in system_test_dir.rglob("*"):