I am working on unittest and when I type that :
python manage.py test
I got that :
ImportError: 'tests' module incorrectly imported from '/home/user/Documents/myproject/dev/Project/tests'. Expected '/home/user/Documents/myproject/dev/Project/Project/Project/Project/Project/Project/Project/Project/Project/Project'. Is this module globally installed?
Clearly, the expected path is wrong... Do you know where I can fix that ?
Thank you very much !
Delete the tests.py file automatically generated by Django. That helped me make it work.
For more information, see this website.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With