test_run: require EYNOLLAH_MODELS to be defined in environ

This commit is contained in:
kba 2024-08-23 19:52:02 +02:00
parent d6a72709a1
commit d7a774ebd2
2 changed files with 3 additions and 2 deletions

View file

@ -43,7 +43,7 @@ install-dev:
pip install -e . pip install -e .
smoke-test: 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 # Run unit tests
test: test:

View file

@ -6,7 +6,8 @@ from qurator.eynollah.cli import main as eynollah_cli
testdir = Path(__file__).parent.resolve() 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): class TestEynollahRun(TestCase):