summaryrefslogtreecommitdiff
path: root/tests/test_verify.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_verify.py')
-rw-r--r--tests/test_verify.py5
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: