Fixed #8552 -- Use the LOGIN_REDIRECT_URL setting in the auth tests, rather than hard-coding the value.

This enables things to work properly when installed in other configurations.
Patch from aeby.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8613 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2008-08-27 06:02:13 +00:00
parent 9de848cec9
commit 157dbe2fff
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ class ChangePasswordTest(TestCase):
} }
) )
self.assertEquals(response.status_code, 302) self.assertEquals(response.status_code, 302)
self.assert_(response['Location'].endswith('/accounts/profile/')) self.assert_(response['Location'].endswith(settings.LOGIN_REDIRECT_URL))
def fail_login(self, password='password'): def fail_login(self, password='password'):
response = self.client.post('/login/', { response = self.client.post('/login/', {