﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
16517	Django tests fail if project LOGIN_URL setting doesn't end with '/login/'	Bjorn Kristinsson	nobody	"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/'))}}}

"	Bug	closed	contrib.auth	1.3	Normal	duplicate		bjornkri@…	Unreviewed	1	0	0	0	1	0
