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_verify.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_verify.py')
-rw-r--r-- | tests/test_verify.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_verify.py b/tests/test_verify.py index c613706..79c5513 100644 --- a/tests/test_verify.py +++ b/tests/test_verify.py @@ -28,9 +28,10 @@ from gemato.verify import ( TEST_STRING = b'The quick brown fox jumps over the lazy dog' -@pytest.fixture -def test_tree(tmp_path): +@pytest.fixture(scope='module') +def test_tree(tmp_path_factory): """Test tree with different file types needed for tests""" + tmp_path = tmp_path_factory.mktemp('verify-') with open(tmp_path / 'empty-file', 'w'): pass with open(tmp_path / 'regular-file', 'wb') as f: |