diff options
Diffstat (limited to 'tests/unit/config/test_configfiles.py')
-rw-r--r-- | tests/unit/config/test_configfiles.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/unit/config/test_configfiles.py b/tests/unit/config/test_configfiles.py index 6c14c86c3..394214a8b 100644 --- a/tests/unit/config/test_configfiles.py +++ b/tests/unit/config/test_configfiles.py @@ -942,10 +942,9 @@ def confpy(tmp_path, config_tmpdir, data_tmpdir, config_stub, key_config_stub): return ConfPy(tmp_path) +@pytest.mark.usefixtures('config_stub', 'key_config_stub') class TestConfigPyModules: - pytestmark = pytest.mark.usefixtures('config_stub', 'key_config_stub') - @pytest.fixture def qbmodulepy(self, tmp_path): return ConfPy(tmp_path, filename="qbmodule.py") @@ -1002,12 +1001,11 @@ class TestConfigPyModules: assert sys.path.count(tmp_path) == 1 +@pytest.mark.usefixtures('config_stub', 'key_config_stub') class TestConfigPy: """Tests for ConfigAPI and read_config_py().""" - pytestmark = pytest.mark.usefixtures('config_stub', 'key_config_stub') - def test_assertions(self, confpy): """Make sure assertions in config.py work for these tests.""" confpy.write('assert False') |