Unit testing django stupid mistakes

ImportError: '' module incorrectly imported from '/local/lib/python2.7/site-packages/'. Expected '/lib/python2.7/site-packages/'. Is this module globally installed?
Check out the layout as"
my_app/
init.py
tests.py
tests/
init.py
test_foo.py
The problem was generated by having both a "tests.py" module and a "tests" package in the same folder.

Just deleting the "tests.py" file solved the problem

你可能感兴趣的:(Unit testing django stupid mistakes)