I have the following folder structure to keep my unit testing files separate from the actual module they test.
proj/
foo/
__init__.py
bar.py
tests/
test.py
How can I import module foo
from test.py
?
I have the following folder structure to keep my unit testing files separate from the actual module they test.
proj/
foo/
__init__.py
bar.py
tests/
test.py
How can I import module foo
from test.py
?
This should work
from .. import foo