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/db_functions/text/test_right.py | |
parent | d795259ea96004df0a2469246229a146307bcd2c (diff) | |
download | django-f0c06f8ab7904e1fd082f2de57337f6c7e05f177.tar.gz |
Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual().
Co-Authored-By: Michael Howitz <mh@gocept.com>
Diffstat (limited to 'tests/db_functions/text/test_right.py')
-rw-r--r-- | tests/db_functions/text/test_right.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/db_functions/text/test_right.py b/tests/db_functions/text/test_right.py index 8c271fcf7d..126f1583a5 100644 --- a/tests/db_functions/text/test_right.py +++ b/tests/db_functions/text/test_right.py @@ -13,12 +13,12 @@ class RightTests(TestCase): def test_basic(self): authors = Author.objects.annotate(name_part=Right("name", 5)) - self.assertQuerysetEqual( + self.assertQuerySetEqual( authors.order_by("name"), ["Smith", "honda"], lambda a: a.name_part ) # If alias is null, set it to the first 2 lower characters of the name. Author.objects.filter(alias__isnull=True).update(alias=Lower(Right("name", 2))) - self.assertQuerysetEqual( + self.assertQuerySetEqual( authors.order_by("name"), ["smithj", "da"], lambda a: a.alias ) @@ -30,6 +30,6 @@ class RightTests(TestCase): authors = Author.objects.annotate( name_part=Right("name", Value(3, output_field=IntegerField())) ) - self.assertQuerysetEqual( + self.assertQuerySetEqual( authors.order_by("name"), ["ith", "nda"], lambda a: a.name_part ) |