mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual().
Co-Authored-By: Michael Howitz <mh@gocept.com>
This commit is contained in:
committed by
Mariusz Felisiak
parent
d795259ea9
commit
f0c06f8ab7
@@ -11,7 +11,7 @@ class UpperTests(TestCase):
|
||||
Author.objects.create(name="John Smith", alias="smithj")
|
||||
Author.objects.create(name="Rhonda")
|
||||
authors = Author.objects.annotate(upper_name=Upper("name"))
|
||||
self.assertQuerysetEqual(
|
||||
self.assertQuerySetEqual(
|
||||
authors.order_by("name"),
|
||||
[
|
||||
"JOHN SMITH",
|
||||
@@ -20,7 +20,7 @@ class UpperTests(TestCase):
|
||||
lambda a: a.upper_name,
|
||||
)
|
||||
Author.objects.update(name=Upper("name"))
|
||||
self.assertQuerysetEqual(
|
||||
self.assertQuerySetEqual(
|
||||
authors.order_by("name"),
|
||||
[
|
||||
("JOHN SMITH", "JOHN SMITH"),
|
||||
@@ -34,7 +34,7 @@ class UpperTests(TestCase):
|
||||
Author.objects.create(name="John Smith", alias="smithj")
|
||||
Author.objects.create(name="Rhonda")
|
||||
authors = Author.objects.filter(name__upper__exact="JOHN SMITH")
|
||||
self.assertQuerysetEqual(
|
||||
self.assertQuerySetEqual(
|
||||
authors.order_by("name"),
|
||||
[
|
||||
"John Smith",
|
||||
|
||||
Reference in New Issue
Block a user