diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-09-14 12:44:25 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-09-18 22:12:40 +0200 |
| commit | 69af3bea9987044c944b5bc83e32c35f0a73c6dd (patch) | |
| tree | 077bb417ebbdad85fc479ea26a61a8fc85c2020c /tests/test_utils | |
| parent | c35fd9e2750a3e49a57d9fef964b9ef3e7cb49cb (diff) | |
Refs #33990 -- Removed TransactionTestCase.assertQuerysetEqual() per deprecation timeline.
Diffstat (limited to 'tests/test_utils')
| -rw-r--r-- | tests/test_utils/tests.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/tests/test_utils/tests.py b/tests/test_utils/tests.py index ef72fb9fdb..f05b1f1e71 100644 --- a/tests/test_utils/tests.py +++ b/tests/test_utils/tests.py @@ -39,13 +39,11 @@ from django.test.testcases import DatabaseOperationForbidden from django.test.utils import ( CaptureQueriesContext, TestContextDecorator, - ignore_warnings, isolate_apps, override_settings, setup_test_environment, ) from django.urls import NoReverseMatch, path, reverse, reverse_lazy -from django.utils.deprecation import RemovedInDjango51Warning from django.utils.html import VOID_ELEMENTS from django.utils.version import PY311 @@ -266,15 +264,6 @@ class AssertQuerySetEqualTests(TestCase): cls.p1 = Person.objects.create(name="p1") cls.p2 = Person.objects.create(name="p2") - def test_rename_assertquerysetequal_deprecation_warning(self): - msg = "assertQuerysetEqual() is deprecated in favor of assertQuerySetEqual()." - with self.assertRaisesMessage(RemovedInDjango51Warning, msg): - self.assertQuerysetEqual() - - @ignore_warnings(category=RemovedInDjango51Warning) - def test_deprecated_assertquerysetequal(self): - self.assertQuerysetEqual(Person.objects.filter(name="p3"), []) - def test_empty(self): self.assertQuerySetEqual(Person.objects.filter(name="p3"), []) |
