summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2021-01-11 12:27:40 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-01-14 17:50:04 +0100
commitd08977a0f05cf3efb538dcb09d07915d2ede4c67 (patch)
tree1efc1c40053cb849c8e677222f408d8bd0435a47 /tests
parent90c59b4e12e6ff41407694a460f5f30c4688dbfd (diff)
Refs #30997 -- Removed HttpRequest.is_ajax() per deprecation timeline.
Diffstat (limited to 'tests')
-rw-r--r--tests/requests/test_is_ajax_deprecations.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/requests/test_is_ajax_deprecations.py b/tests/requests/test_is_ajax_deprecations.py
deleted file mode 100644
index e311752d7f..0000000000
--- a/tests/requests/test_is_ajax_deprecations.py
+++ /dev/null
@@ -1,12 +0,0 @@
-from django.http import HttpRequest
-from django.test import SimpleTestCase, ignore_warnings
-from django.utils.deprecation import RemovedInDjango40Warning
-
-
-@ignore_warnings(category=RemovedInDjango40Warning)
-class TestDeprecatedIsAjax(SimpleTestCase):
- def test_is_ajax(self):
- request = HttpRequest()
- self.assertIs(request.is_ajax(), False)
- request.META['HTTP_X_REQUESTED_WITH'] = 'XMLHttpRequest'
- self.assertIs(request.is_ajax(), True)