Warning: beginner!
I have a directory structure thus:
myapp
- common
- data
- resources
- tests
- test_myapp.py
- view
- ViewConstants.py
I run my test from the myapp directory using:
pytest tests/test_myapp.py
In the test file try to import ViewConstants. I have tried:
from view import ViewConstants
but when trying to run the test I get:
E ModuleNotFoundError: No module named 'view'
How do I overcome this import problem?
Thank you!