From 21f919b14a9aeaa08aecbcdd41a530198315aad1 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Sun, 30 Aug 2020 16:24:10 +0200 Subject: tests: Use module-scope fixtures whenever possible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- tests/test_manifest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_manifest.py') 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: -- cgit v1.2.3