]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Make servers fixture in pytest module-wide
authorNicki Křížek <nicki@isc.org>
Wed, 28 Aug 2024 13:00:02 +0000 (15:00 +0200)
committerMichal Nowak <mnowak@isc.org>
Fri, 24 Jan 2025 08:45:51 +0000 (08:45 +0000)
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.

bin/tests/system/conftest.py

index 7530473909c67dd423e13d34a8f0ba15de2014e6..1bb40cf7c992cc83d20cc9d680bd2da882d634a2 100644 (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("*"):