Refs #32311 -- Fixed CSRF_FAILURE_VIEW system check errors code.

This commit is contained in:
Hasan Ramezani 2021-01-12 11:22:13 +01:00 committed by GitHub
parent fdc3d9dcaf
commit ba3fb2e4d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 9 deletions

View file

@ -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')],
)