aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2020-11-25 01:38:01 +0100
committerMartin Czygan <martin.czygan@gmail.com>2020-11-25 01:38:01 +0100
commit95169cc78e1c66e42879edd5b12b09f28156007a (patch)
tree8b2e1bcf79d2cd64bf3d320093a1c23573e93286
parent56e98d87439fd537cbc118bf30d10e66a8a9eced (diff)
downloadfuzzycat-95169cc78e1c66e42879edd5b12b09f28156007a.tar.gz
fuzzycat-95169cc78e1c66e42879edd5b12b09f28156007a.zip
inform user about missing local entity
-rw-r--r--tests/test_verify.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_verify.py b/tests/test_verify.py
index 77eecea..4807de8 100644
--- a/tests/test_verify.py
+++ b/tests/test_verify.py
@@ -1,3 +1,4 @@
+import pytest
import csv
import json
import os
@@ -18,6 +19,8 @@ status_mapping = {
def load_release_ident(ident):
dst = os.path.join(RELEASE_ENTITIES_DIR, ident)
+ if not os.path.exists(dst):
+ pytest.fail("cannot find entity locally, run `make` in tests/data/ to fetch")
with open(dst) as f:
return json.load(f)