hello,
i am looking for a way to set PYTHONPATH to the workspace / current directory of a build that executes unit test with pytest and avoid the following
error messages:
[Tests] ______________ ERROR collecting tests/unit/drive/test_config.py _______________
[Tests] tests/unit/drive/test_config.py:3: in <module>
[Tests] from drive import config
[Tests] E ImportError: No module named 'drive'
[Tests] ______________ ERROR collecting tests/unit/drive/test_helpers.py ______________
[Tests] tests/unit/drive/test_helpers.py:3: in <module>
[Tests] from drive import helpers
[Tests] E ImportError: No module named 'drive'
[Tests] ______________ ERROR collecting tests/unit/drive/test_service.py ______________
[Tests] tests/unit/drive/test_service.py:5: in <module>
[Tests] from drive import service
[Tests] E ImportError: No module named 'drive'
[Tests] ___________ ERROR collecting tests/unit/drive/test_transformers.py ____________
[Tests] tests/unit/drive/test_transformers.py:5: in <module>
[Tests] from drive import transformers
[Tests] E ImportError: No module named 'drive'
[Tests] =========================== 4 error in 0.25 seconds ============================
the build is excuted in docker container based on the official python 3.5 image
I have to admit i have been playing with python for about just two weeks so i might be missing something.
Best regards
Omeka