From d7a774ebd27552d114ac1a801a22a2671e34f0c5 Mon Sep 17 00:00:00 2001 From: kba Date: Fri, 23 Aug 2024 19:52:02 +0200 Subject: [PATCH] test_run: require EYNOLLAH_MODELS to be defined in environ --- Makefile | 2 +- tests/test_run.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4b43564..a89856c 100644 --- a/Makefile +++ b/Makefile @@ -43,7 +43,7 @@ install-dev: pip install -e . smoke-test: - eynollah -i tests/resources/kant_aufklaerung_1784_0020.tif -o . -m $(PWD)/models_eynollah + eynollah -i tests/resources/kant_aufklaerung_1784_0020.tif -o . -m $(EYNOLLAH_MODELS) # Run unit tests test: diff --git a/tests/test_run.py b/tests/test_run.py index b1137e7..e591a04 100644 --- a/tests/test_run.py +++ b/tests/test_run.py @@ -6,7 +6,8 @@ from qurator.eynollah.cli import main as eynollah_cli testdir = Path(__file__).parent.resolve() -EYNOLLAH_MODELS = environ.get('EYNOLLAH_MODELS', str(testdir.joinpath('..', 'models_eynollah').resolve())) +# EYNOLLAH_MODELS = environ.get('EYNOLLAH_MODELS', str(testdir.joinpath('..', 'models_eynollah').resolve())) +EYNOLLAH_MODELS = environ['EYNOLLAH_MODELS'] class TestEynollahRun(TestCase):