mirror of
https://github.com/django/django.git
synced 2025-11-03 05:13:23 +00:00
Refs #24652 -- Used SimpleTestCase where appropriate.
This commit is contained in:
parent
e2b77acedd
commit
be67400b47
93 changed files with 362 additions and 340 deletions
|
|
@ -10,7 +10,7 @@ from django.middleware.csrf import (
|
|||
)
|
||||
from django.template import RequestContext, Template
|
||||
from django.template.context_processors import csrf
|
||||
from django.test import TestCase, override_settings
|
||||
from django.test import SimpleTestCase, override_settings
|
||||
from django.views.decorators.csrf import (
|
||||
csrf_exempt, ensure_csrf_cookie, requires_csrf_token,
|
||||
)
|
||||
|
|
@ -56,7 +56,7 @@ class TestingHttpRequest(HttpRequest):
|
|||
return getattr(self, '_is_secure_override', False)
|
||||
|
||||
|
||||
class CsrfViewMiddlewareTest(TestCase):
|
||||
class CsrfViewMiddlewareTest(SimpleTestCase):
|
||||
# The csrf token is potentially from an untrusted source, so could have
|
||||
# characters that need dealing with.
|
||||
_csrf_id_cookie = b"<1>\xc2\xa1"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue