Cannot run django tests via manage.py

I have a problem similar to the description here: https://ask.wingware.com/question/130....

I am running Wing Pro 7.2.2.2 on macOS and Django v2.2.2.

I have created a Django project and can successfully start and debug my Django application from within Wing IDE.

To setup Django testing I have followed instructions in the answer to that question (URL above). Also DJANGO_SETTINGS_MODULE is set in the Project Environment. I have tried setting that env-var in the Testing environment as well. (Default Test Framework is 'Django Tests', the single file added to via Testing is manage.py.

When I attempt to run my Django tests I get an exception in run_djangotests_xml.py indicating 'No module named 'settings'.

argv passed to init_django() is ['/Applications/WingPro.app/Contents/Resources/updates/7.2.2.0/src/testing/runners/run_djangotests_xml.py', '--directory=/Users/m.melo/source/yottaa/yottaa-security-config-service', '-q', 'cfgsvc.manage', '--no-xml', '--runargs="DJANGO_SETTINGS_MODULE=cfgsvc.settings"']

How do I debug/fix this? Thanks.

PS: this is link to already asked question: ask.wingware.com/question/1301/django-testing-keeps-adding-unittest-fails-to-find-some-tests/

pymike's avatar
186
pymike
asked 2020-04-08 14:09:13 -0500
Wingware Support's avatar
4k
Wingware Support
updated 2020-04-08 14:28:50 -0500
edit flag offensive 0 remove flag close merge delete

Comments

Did you run Project > Extensions > Configure Project for Django for this project or set it up manually?

Wingware Support's avatar Wingware Support (2020-04-09 09:24:16 -0500) edit
add a comment see more comments