test_run: require EYNOLLAH_MODELS to be defined in environ

refactoring-2024-08-merged
kba 4 months ago
parent d6a72709a1
commit d7a774ebd2

@ -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:

@ -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):

Loading…
Cancel
Save