Opened 13 years ago

Closed 13 years ago

#17226 closed Bug (needsinfo)

Django TestCase and settings.AUTHENTICATION_BACKENDS

Reported by: taraslyapun@… 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?

Change History (1)

comment:1 by Julien Phalip, 13 years ago

Resolution: needsinfo
Status: newclosed

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!

Note: See TracTickets for help on using tickets.
Back to Top