PyCharm cannot find Django test

I am using this exact same problem , but I cannot find a solution for this.

Find the dummy Django project I created for this here .

This is my test configuration:

enter image description here

This is the project structure:

enter image description here

Trying to run test results in:

AttributeError: 'super' object has no attribute 'run_tests'

Process finished with exit code 137
Empty test suite.

      

Obviously running this from the shell gives no errors:

(django)mosquito@mosquito-X550LD ~/python_projects/django_test $ python manage.py test 
Creating test database for alias 'default'...
.
----------------------------------------------------------------------
Ran 1 test in 0.000s

OK
Destroying test database for alias 'default'...

      

Any idea what I am doing wrong?

Thanks, Alejandro

+3


source to share


1 answer


In the project config add another environment variable

DJANGO_SETTINGS_MODULE = django_test.settings



You can do this by clicking on the "..."

+1


source







All Articles