#16605: Can't client.login() in tests if contrib.SessionMiddleware is not in
MIDDLEWARE_CLASSES
---------------------+-----------------------------------
 Reporter:  jbalogh  |          Owner:  nobody
     Type:  Bug      |         Status:  new
Milestone:  1.4      |      Component:  Testing framework
  Version:  1.3      |       Severity:  Normal
 Keywords:           |   Triage Stage:  Unreviewed
Has patch:  0        |  Easy pickings:  0
    UI/UX:  0        |
---------------------+-----------------------------------
 #7836 ([16386]) changed `django.test.client.Client` to require
 `'django.contrib.sessions.middleware.SessionMiddleware' in
 settings.MIDDLEWARE_CLASSES`. This is extremely brittle; I have a subclass
 of `SessionMiddleware` in my `MIDDLEWARE_CLASSES` but of course the paths
 don't match, so now `client.login()` fails.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16605>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to