Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Tests fail when launched via "manage.py test" #10
After adding django_rules to INSTALLED_APPS and "django_rules.backends.ObjectPermissionBackend" to AUTHENTICATION_BACKENDS, launching tests via manage.py cause several failures.
Some of these errors can be corrected by adding "django_rules.tests" to INSTALLED_APPS but three different errors remain.
Running tests via the provided runtests.py script works fine but a lot less tests are executed.
The errors are:
I'm very sorry to have taken 6 months to answer this issue. All I can say is I rarely take so long.
There is no way to solve this issue at the moment as far as I know. If you need to run django-rules tests, you will have to use the custom test runner defined in
I've opened an issue in Django to see what they think about this use case. You can see it here:
All, I can say is that tests fail due to the fact that they don't get the test runner preparation work, which setups the testing environment.