diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-08-30 16:24:10 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-08-30 16:24:10 +0200 |
commit | 21f919b14a9aeaa08aecbcdd41a530198315aad1 (patch) | |
tree | a23c4663c499324378d6f486c3c8e35ae5ba034c /tests/test_manifest.py | |
parent | f6dcfd5c6fe1338b74d502284cd524549b6edde9 (diff) | |
download | gemato-21f919b14a9aeaa08aecbcdd41a530198315aad1.tar.gz |
tests: Use module-scope fixtures whenever possible
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'tests/test_manifest.py')
-rw-r--r-- | tests/test_manifest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_manifest.py b/tests/test_manifest.py index 1b154a3..7bed4d5 100644 --- a/tests/test_manifest.py +++ b/tests/test_manifest.py @@ -99,7 +99,7 @@ def test_find_timestamp(manifest_var, expected): assert m.find_timestamp().ts == expected -@pytest.fixture +@pytest.fixture(scope='module') def test_manifest(): m = ManifestFile() with io.StringIO(TEST_MANIFEST) as f: @@ -107,7 +107,7 @@ def test_manifest(): yield m -@pytest.fixture +@pytest.fixture(scope='module') def deprecated_manifest(): m = ManifestFile() with io.StringIO(TEST_DEPRECATED_MANIFEST) as f: |