Opened 13 years ago

Closed 13 years ago

#17691 closed Bug (duplicate)

conflict of django.contrib.auth with project's middleware

Reported by: andrey@… Owned by: nobody
Component: contrib.auth Version: dev
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

If I add django-debug-toolbar middleware, which uses session access, test "Session not accessed will" fail:

Traceback (most recent call last):
  File "/Users/gugu/w/virtualenv/eksmo/src/django/django/contrib/auth/tests/context_processors.py", line 31, in test_session_not_accessed
    self.assertContains(response, "Session not accessed")
  File "/Users/gugu/w/virtualenv/eksmo/src/django/django/test/testcases.py", line 538, in assertContains
    msg_prefix + "Couldn't find '%s' in response" % text)
AssertionError: Couldn't find 'Session not accessed' in response

You need to override middleware list to make this test working in all configurations

Attachments (1)

middleware.patch (896 bytes ) - added by gugu 13 years ago.

Download all attachments as: .zip

Change History (2)

by gugu, 13 years ago

Attachment: middleware.patch added

comment:1 by Claude Paroz, 13 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #16366

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