First time here? Check out the FAQ!

Revision history  [back]

cant run django tests via manage.py

I have a problem similar to the description here: https://ask.wingware.com/question/1301/django-testing-keeps-adding-unittest-fails-to-find-some-tests/.

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/

cant run django tests via manage.py

I have a problem similar to the description here: https://ask.wingware.com/question/1301/django-testing-keeps-adding-unittest-fails-to-find-some-tests/.

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/

cant run django tests via manage.py

I have a problem similar to the description here: https://ask.wingware.com/question/1301/django-testing-keeps-adding-unittest-fails-to-find-some-tests/.

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/

cant run django tests via manage.py

I have a problem similar to the description here: https://ask.wingware.com/question/1301/django-testing-keeps-adding-unittest-fails-to-find-some-tests/.

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/

cant run django tests via manage.py

I have a problem similar to the description here: https://ask.wingware.com/question/1301/django-testing-keeps-adding-unittest-fails-to-find-some-tests/.

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). question. 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.