From: Nicki Křížek Date: Wed, 28 Aug 2024 13:00:02 +0000 (+0200) Subject: Make servers fixture in pytest module-wide X-Git-Tag: v9.21.5~30^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a72ff9fd574b4a3276c545237a378a85e65de12a;p=thirdparty%2Fbind9.git 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. --- diff --git a/bin/tests/system/conftest.py b/bin/tests/system/conftest.py index 7530473909c..1bb40cf7c99 100644 --- a/bin/tests/system/conftest.py +++ b/bin/tests/system/conftest.py @@ -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("*"):