#16517: Django tests fail if project LOGIN_URL setting doesn't end with '/login/' ----------------------+------------------------------ Reporter: bjornkri | Owner: nobody Type: Bug | Status: new Milestone: | Component: contrib.auth Version: 1.3 | Severity: Normal Keywords: | Triage Stage: Unreviewed Has patch: 1 | Easy pickings: 1 UI/UX: 0 | ----------------------+------------------------------ To reproduce:
Start a new project, edit settings.py and add: {{{ ... LOGIN_URL = '/foobar/' ... 'ENGINE': 'django.db.backends.sqlite3', }}} (Adding sqlite3 to the database engine setting so the tests will run) Running ./manage.py test will now fail. The culprit is in test_password_change_done_fails() in /django/contrib/auth/tests/views.py: {{{self.assertTrue(response['Location'].endswith('/login/?next=/password_change/done/'))}}} Patch attached that replaces his line with {{{self.assertTrue(response['Location'].endswith('/?next=/password_change/done/'))}}} -- Ticket URL: <https://code.djangoproject.com/ticket/16517> 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.