diff options
author | Hasan Ramezani <hasan.r67@gmail.com> | 2021-01-12 11:22:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-12 11:22:13 +0100 |
commit | ba3fb2e4d0aca26f6ea37d7e31488ad09043f89d (patch) | |
tree | 2f73a1e3c208759b0235237a6ee29e59b34247e4 /tests/check_framework | |
parent | fdc3d9dcaf87fb0a1350154561053faa331c3b69 (diff) | |
download | django-ba3fb2e4d0aca26f6ea37d7e31488ad09043f89d.tar.gz |
Refs #32311 -- Fixed CSRF_FAILURE_VIEW system check errors code.
Diffstat (limited to 'tests/check_framework')
-rw-r--r-- | tests/check_framework/test_security.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/check_framework/test_security.py b/tests/check_framework/test_security.py index 9bf9bb2a0a..3a3b9cf774 100644 --- a/tests/check_framework/test_security.py +++ b/tests/check_framework/test_security.py @@ -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')], ) |