mirror of
https://github.com/django/django.git
synced 2025-07-24 13:44:32 +00:00
Refs #32311 -- Fixed CSRF_FAILURE_VIEW system check errors code.
This commit is contained in:
parent
fdc3d9dcaf
commit
ba3fb2e4d0
3 changed files with 9 additions and 9 deletions
|
@ -486,13 +486,13 @@ class CSRFFailureViewTest(SimpleTestCase):
|
|||
[
|
||||
Error(
|
||||
"The CSRF failure view '' could not be imported.",
|
||||
id='security.E025',
|
||||
id='security.E102',
|
||||
)
|
||||
],
|
||||
)
|
||||
|
||||
@override_settings(
|
||||
CSRF_FAILURE_VIEW=f'{__name__}.failure_view_with_invalid_signature',
|
||||
CSRF_FAILURE_VIEW='check_framework.test_security.failure_view_with_invalid_signature',
|
||||
)
|
||||
def test_failure_view_invalid_signature(self):
|
||||
msg = (
|
||||
|
@ -502,5 +502,5 @@ class CSRFFailureViewTest(SimpleTestCase):
|
|||
)
|
||||
self.assertEqual(
|
||||
csrf.check_csrf_failure_view(None),
|
||||
[Error(msg, id='security.E024')],
|
||||
[Error(msg, id='security.E101')],
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue