From 95169cc78e1c66e42879edd5b12b09f28156007a Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Wed, 25 Nov 2020 01:38:01 +0100 Subject: inform user about missing local entity --- tests/test_verify.py | 3 +++ 1 file changed, 3 insertions(+) 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) -- cgit v1.2.3