Configuration error when setting up Django test

Answered

I am trying to set up a "Django tests" configuration where target is someapp and options are --verbosity=2 --keepdb --nomigrations. The last one is provided by the django-tests-without-migrations package and is giving me some trouble because when running the configuration I am getting:

django_test_manage.py test: error: unrecognized arguments: --nomigrations

However when running the test via terminal or setting up a "Python" configuration I am having no issues at all.

1
2 comments
Official comment

Hello.

This is not fully supported now. Please see https://youtrack.jetbrains.com/issue/PY-26660

But there is a workaround you can use: https://youtrack.jetbrains.com/issue/PY-16415

Avatar
Permanently deleted user

So I can only create a Python configuration or use that workaround for the manage.py taks? But what about a test configuration? In that issue a JetBrains official said the fix would be available in PyCharm 2017.1. I am using version 2017.1.2.

0

Please sign in to leave a comment.