mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
[2.2.x] Cleaned up exception message checking in some tests.
Backport of 95b7699ffc
from master.
This commit is contained in:
parent
985e6c224b
commit
87fad5a392
6 changed files with 15 additions and 9 deletions
|
@ -855,7 +855,7 @@ class LoginRedirectAuthenticatedUser(AuthViewsTestCase):
|
|||
self.login()
|
||||
msg = (
|
||||
"Redirection loop for authenticated user detected. Check that "
|
||||
"your LOGIN_REDIRECT_URL doesn't point to a login page"
|
||||
"your LOGIN_REDIRECT_URL doesn't point to a login page."
|
||||
)
|
||||
with self.settings(LOGIN_REDIRECT_URL=self.do_redirect_url):
|
||||
with self.assertRaisesMessage(ValueError, msg):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue