Here is the structure:
-app-l1
-src
-__init__.py
-my_module.py
-tests
-__init__.py
-test_my_module.py
I'm trying to import all functions from my_module
to test_my_module.py
for unittesting.
I've tried:
from ..src.my_module import my_module
which returns
ImportError: attempted relative import with no known parent package
Also tried:
from src.my_module import my_module
which returns
ModuleNotFoundError: No module named 'src.my_module'
Printing out sys.path
shows that it's only looking inside tests
directory.
How do I correctly specify where to look for the module?
Any help would be really nice! Thanks