diff options
| author | Gregor Gärtner <code@gregorgaertner.de> | 2022-09-24 11:29:58 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-10-08 08:07:38 +0200 |
| commit | f0c06f8ab7904e1fd082f2de57337f6c7e05f177 (patch) | |
| tree | 2073bfe1bb55350d9516f9a54ad7d9895a84ca48 /tests/annotations | |
| parent | d795259ea96004df0a2469246229a146307bcd2c (diff) | |
Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual().
Co-Authored-By: Michael Howitz <mh@gocept.com>
Diffstat (limited to 'tests/annotations')
| -rw-r--r-- | tests/annotations/tests.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/annotations/tests.py b/tests/annotations/tests.py index 0a5bbd8a57..472669288c 100644 --- a/tests/annotations/tests.py +++ b/tests/annotations/tests.py @@ -517,7 +517,7 @@ class NonAggregateAnnotationTestCase(TestCase): .order_by("store_name") ) - self.assertQuerysetEqual( + self.assertQuerySetEqual( books, ["Amazon.com", "Books.com", "Mamma and Pappa's Books"], lambda b: b.store_name, @@ -609,7 +609,7 @@ class NonAggregateAnnotationTestCase(TestCase): .filter(chain="Westfield") ) - self.assertQuerysetEqual( + self.assertQuerySetEqual( qs, [ ("Angus & Robinson", "Westfield", True, "155860191"), @@ -629,7 +629,7 @@ class NonAggregateAnnotationTestCase(TestCase): def test_order_by_annotation(self): authors = Author.objects.annotate(other_age=F("age")).order_by("other_age") - self.assertQuerysetEqual( + self.assertQuerySetEqual( authors, [ 25, @@ -651,7 +651,7 @@ class NonAggregateAnnotationTestCase(TestCase): .annotate(age_count=Count("age")) .order_by("age_count", "age") ) - self.assertQuerysetEqual( + self.assertQuerySetEqual( authors, [ (25, 1), @@ -735,7 +735,7 @@ class NonAggregateAnnotationTestCase(TestCase): (2, "Buffy", False, 42, "Summers", 18, Decimal(40000.00), store.name, 17), ] - self.assertQuerysetEqual( + self.assertQuerySetEqual( qs.order_by("id"), rows, lambda e: ( @@ -786,7 +786,7 @@ class NonAggregateAnnotationTestCase(TestCase): ] # and we respect deferred columns! - self.assertQuerysetEqual( + self.assertQuerySetEqual( qs.defer("age").order_by("id"), rows, lambda e: ( @@ -835,7 +835,7 @@ class NonAggregateAnnotationTestCase(TestCase): ) ).order_by("name") - self.assertQuerysetEqual( + self.assertQuerySetEqual( qs, [ ("Apple", "APPL"), @@ -891,7 +891,7 @@ class NonAggregateAnnotationTestCase(TestCase): # LOWER function supported by: # oracle, postgres, mysql, sqlite, sqlserver - self.assertQuerysetEqual( + self.assertQuerySetEqual( qs, [ ("Apple", "APPL".lower()), @@ -1333,7 +1333,7 @@ class AliasTests(TestCase): def test_order_by_alias(self): qs = Author.objects.alias(other_age=F("age")).order_by("other_age") self.assertIs(hasattr(qs.first(), "other_age"), False) - self.assertQuerysetEqual(qs, [34, 34, 35, 46, 57], lambda a: a.age) + self.assertQuerySetEqual(qs, [34, 34, 35, 46, 57], lambda a: a.age) def test_order_by_alias_aggregate(self): qs = ( @@ -1342,7 +1342,7 @@ class AliasTests(TestCase): .order_by("age_count", "age") ) self.assertIs(hasattr(qs.first(), "age_count"), False) - self.assertQuerysetEqual(qs, [35, 46, 57, 34], lambda a: a["age"]) + self.assertQuerySetEqual(qs, [35, 46, 57, 34], lambda a: a["age"]) def test_dates_alias(self): qs = Book.objects.alias( |
