Skip to content

Commit 9af0ae7

Browse files
committed
tests: cache sample files
1 parent ea83c4a commit 9af0ae7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ def sample_images_readonly(tmpdir_factory):
5151
url=SAMPLE_IMAGES_URL,
5252
download_path=download_path
5353
)
54+
if not os.path.exists(archive):
55+
raise FileNotFoundError(f"sample image archive not found. {archive} does not exist.")
5456
verify_hash(archive, sha256_hash=SAMPLE_IMAGES_SHA256)
5557
extract_images(path=archive, destination=test_path)
5658
yield sample_images_path

0 commit comments

Comments
 (0)