mirror of
https://github.com/django/django.git
synced 2025-08-02 18:13:02 +00:00
Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual().
Co-Authored-By: Michael Howitz <mh@gocept.com>
This commit is contained in:
parent
d795259ea9
commit
f0c06f8ab7
76 changed files with 689 additions and 660 deletions
|
@ -21,7 +21,7 @@ class UnaccentTest(PostgreSQLTestCase):
|
|||
)
|
||||
|
||||
def test_unaccent(self):
|
||||
self.assertQuerysetEqual(
|
||||
self.assertQuerySetEqual(
|
||||
self.Model.objects.filter(field__unaccent="aeO"),
|
||||
["àéÖ", "aeO"],
|
||||
transform=lambda instance: instance.field,
|
||||
|
@ -33,13 +33,13 @@ class UnaccentTest(PostgreSQLTestCase):
|
|||
Unaccent can be used chained with a lookup (which should be the case
|
||||
since unaccent implements the Transform API)
|
||||
"""
|
||||
self.assertQuerysetEqual(
|
||||
self.assertQuerySetEqual(
|
||||
self.Model.objects.filter(field__unaccent__iexact="aeO"),
|
||||
["àéÖ", "aeO", "aeo"],
|
||||
transform=lambda instance: instance.field,
|
||||
ordered=False,
|
||||
)
|
||||
self.assertQuerysetEqual(
|
||||
self.assertQuerySetEqual(
|
||||
self.Model.objects.filter(field__unaccent__endswith="éÖ"),
|
||||
["àéÖ", "aeO"],
|
||||
transform=lambda instance: instance.field,
|
||||
|
@ -54,7 +54,7 @@ class UnaccentTest(PostgreSQLTestCase):
|
|||
if disable_conforming_strings:
|
||||
cursor.execute("SET standard_conforming_strings TO off")
|
||||
try:
|
||||
self.assertQuerysetEqual(
|
||||
self.assertQuerySetEqual(
|
||||
self.Model.objects.filter(field__unaccent__endswith="éÖ"),
|
||||
["àéÖ", "aeO"],
|
||||
transform=lambda instance: instance.field,
|
||||
|
@ -65,7 +65,7 @@ class UnaccentTest(PostgreSQLTestCase):
|
|||
cursor.execute("SET standard_conforming_strings TO on")
|
||||
|
||||
def test_unaccent_accentuated_needle(self):
|
||||
self.assertQuerysetEqual(
|
||||
self.assertQuerySetEqual(
|
||||
self.Model.objects.filter(field__unaccent="aéÖ"),
|
||||
["àéÖ", "aeO"],
|
||||
transform=lambda instance: instance.field,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue