I have a python application like this
/
/crawl.py
/crawl/__init__.py
/crawl/john.py
/tests/test_john.py
What I am trying to do, is run the unit test test_john.py
which needs to use john.py
but it's in another folder.
In my tests/test_john.py
I get this when I run it
Traceback (most recent call last):
File "test_john.py", line 2, in <module>
from john import John
ImportError: No module named john
So how can I import a class, from the crawl folder....