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.

(cherry picked from commit a72ff9fd57)
This commit is contained in:
Nicki Křížek 2024-08-28 15:00:02 +02:00 committed by Michal Nowak
parent f3f7667fc7
commit 2eb5ce24fb

View file

@ -669,7 +669,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("*"):