mirror of
https://github.com/qurator-spk/eynollah.git
synced 2025-06-07 19:35:01 +02:00
test_run: require EYNOLLAH_MODELS to be defined in environ
This commit is contained in:
parent
d6a72709a1
commit
d7a774ebd2
2 changed files with 3 additions and 2 deletions
2
Makefile
2
Makefile
|
@ -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:
|
||||||
|
|
|
@ -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):
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue