From a72ff9fd574b4a3276c545237a378a85e65de12a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicki=20K=C5=99=C3=AD=C5=BEek?= Date: Wed, 28 Aug 2024 15:00:02 +0200 Subject: [PATCH] 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. --- bin/tests/system/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/tests/system/conftest.py b/bin/tests/system/conftest.py index 7530473909..1bb40cf7c9 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("*"):