mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +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
14
tests/fixtures/tests.py
vendored
14
tests/fixtures/tests.py
vendored
@@ -274,7 +274,7 @@ class FixtureLoadingTests(DumpDataAssertMixin, TestCase):
|
||||
|
||||
# Load fixture 6, JSON file with dynamic ContentType fields. Testing ManyToOne.
|
||||
management.call_command("loaddata", "fixture6.json", verbosity=0)
|
||||
self.assertQuerysetEqual(
|
||||
self.assertQuerySetEqual(
|
||||
Tag.objects.all(),
|
||||
[
|
||||
'<Tag: <Article: Copyright is fine the way it is> tagged "copyright">',
|
||||
@@ -286,7 +286,7 @@ class FixtureLoadingTests(DumpDataAssertMixin, TestCase):
|
||||
|
||||
# Load fixture 7, XML file with dynamic ContentType fields. Testing ManyToOne.
|
||||
management.call_command("loaddata", "fixture7.xml", verbosity=0)
|
||||
self.assertQuerysetEqual(
|
||||
self.assertQuerySetEqual(
|
||||
Tag.objects.all(),
|
||||
[
|
||||
'<Tag: <Article: Copyright is fine the way it is> tagged "copyright">',
|
||||
@@ -300,7 +300,7 @@ class FixtureLoadingTests(DumpDataAssertMixin, TestCase):
|
||||
|
||||
# Load fixture 8, JSON file with dynamic Permission fields. Testing ManyToMany.
|
||||
management.call_command("loaddata", "fixture8.json", verbosity=0)
|
||||
self.assertQuerysetEqual(
|
||||
self.assertQuerySetEqual(
|
||||
Visa.objects.all(),
|
||||
[
|
||||
"<Visa: Django Reinhardt Can add user, Can change user, Can delete "
|
||||
@@ -314,7 +314,7 @@ class FixtureLoadingTests(DumpDataAssertMixin, TestCase):
|
||||
|
||||
# Load fixture 9, XML file with dynamic Permission fields. Testing ManyToMany.
|
||||
management.call_command("loaddata", "fixture9.xml", verbosity=0)
|
||||
self.assertQuerysetEqual(
|
||||
self.assertQuerySetEqual(
|
||||
Visa.objects.all(),
|
||||
[
|
||||
"<Visa: Django Reinhardt Can add user, Can change user, Can delete "
|
||||
@@ -934,7 +934,7 @@ class FixtureLoadingTests(DumpDataAssertMixin, TestCase):
|
||||
management.call_command(
|
||||
"loaddata", "db_fixture_1", verbosity=0, app_label="someotherapp"
|
||||
)
|
||||
self.assertQuerysetEqual(Article.objects.all(), [])
|
||||
self.assertQuerySetEqual(Article.objects.all(), [])
|
||||
management.call_command(
|
||||
"loaddata", "db_fixture_1", verbosity=0, app_label="fixtures"
|
||||
)
|
||||
@@ -985,7 +985,7 @@ class FixtureLoadingTests(DumpDataAssertMixin, TestCase):
|
||||
management.call_command(
|
||||
"loaddata", "db_fixture_3", verbosity=0, database="default"
|
||||
)
|
||||
self.assertQuerysetEqual(Article.objects.all(), [])
|
||||
self.assertQuerySetEqual(Article.objects.all(), [])
|
||||
|
||||
def test_output_formats(self):
|
||||
# Load back in fixture 1, we need the articles from it
|
||||
@@ -993,7 +993,7 @@ class FixtureLoadingTests(DumpDataAssertMixin, TestCase):
|
||||
|
||||
# Try to load fixture 6 using format discovery
|
||||
management.call_command("loaddata", "fixture6", verbosity=0)
|
||||
self.assertQuerysetEqual(
|
||||
self.assertQuerySetEqual(
|
||||
Tag.objects.all(),
|
||||
[
|
||||
'<Tag: <Article: Time to reform copyright> tagged "copyright">',
|
||||
|
||||
Reference in New Issue
Block a user