]> 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:56:36 +0000 (08:56 +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.

(cherry picked from commit a72ff9fd574b4a3276c545237a378a85e65de12a)

bin/tests/system/conftest.py

index 070d53aae2b44938a6dd636bc10073ecc5e9005f..52040b02dde0355370e39bf7feff25e680ea01ae 100644 (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("*"):