Opened 13 years ago
Closed 13 years ago
#17226 closed Bug (needsinfo)
Django TestCase and settings.AUTHENTICATION_BACKENDS
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Testing framework | Version: | 1.3-rc |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I specify in my settings.py:
AUTHENTICATION_BACKENDS = ('django.contrib.auth.backends.ModelBackend',)
When I run test-server or shell settings.AUTHENTICATION_BACKENDS == ('django.contrib.auth.backends.ModelBackend',) and this is good.
But if I run test: settings.AUTHENTICATION_BACKENDS = django.contrib.auth.backends.RemoteUserBackend, and I can't test authentication.
This is bug or I don't understand something?
Note:
See TracTickets
for help on using tickets.
Thanks for the report but I'm afraid more information is required to determine what's going on. You may reopen this ticket but please provide a specific test case clearly demonstrating the issue. Thanks!