Skip to content

Commit

Permalink
Need this as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
marksweb committed Dec 29, 2023
1 parent f74b1fc commit 7bf9010
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions tests/test_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def test_only_fetches_latest_content_records(self):
with self.login_user_context(self.get_superuser()):
response = self.client.get(self.get_admin_url(PollContent, "changelist"))

self.assertQuerysetEqual(
self.assertQuerySetEqual(
response.context["cl"].queryset,
[poll_content1.pk, poll_content2.pk, poll_content3.pk],
transform=lambda x: x.pk,
Expand All @@ -295,7 +295,7 @@ def test_records_filtering_is_generic(self):
with self.login_user_context(self.get_superuser()):
response = self.client.get(self.get_admin_url(BlogContent, "changelist"))

self.assertQuerysetEqual(
self.assertQuerySetEqual(
response.context["cl"].queryset,
[blog_content1.pk, blog_content2.pk],
transform=lambda x: x.pk,
Expand Down Expand Up @@ -2128,7 +2128,7 @@ def test_compare_view_has_version_data_in_context_when_no_get_param(self):
self.assertNotIn("v2", context)
self.assertNotIn("v2_preview_url", context)
self.assertIn("version_list", context)
self.assertQuerysetEqual(
self.assertQuerySetEqual(
context["version_list"],
[versions[0].pk, versions[1].pk],
transform=lambda o: o.pk,
Expand Down Expand Up @@ -2188,7 +2188,7 @@ def test_compare_view_has_version_data_in_context_when_version2_in_get_param(sel
self.disable_toolbar_params,
)
self.assertIn("version_list", context)
self.assertQuerysetEqual(
self.assertQuerySetEqual(
context["version_list"],
[versions[0].pk, versions[1].pk, versions[2].pk],
transform=lambda o: o.pk,
Expand Down Expand Up @@ -2314,7 +2314,7 @@ def test_grouper_filtering(self):

self.assertEqual(response.status_code, 200)
self.assertIn("cl", response.context)
self.assertQuerysetEqual(
self.assertQuerySetEqual(
response.context["cl"].queryset,
[pv.pk],
transform=lambda x: x.pk,
Expand Down
8 changes: 4 additions & 4 deletions tests/test_datastructures.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def test_distinct_groupers(self):
grouper_field_name="poll",
copy_function=default_copy,
)
self.assertQuerysetEqual(
self.assertQuerySetEqual(
versionable.distinct_groupers(),
[latest_poll1_version.content.pk, latest_poll2_version.content.pk],
transform=lambda x: x.pk,
Expand Down Expand Up @@ -63,7 +63,7 @@ def test_queryset_filter_for_distinct_groupers(self):

qs_published_filter = {"versions__state__in": [PUBLISHED]}
# Should be one published version
self.assertQuerysetEqual(
self.assertQuerySetEqual(
versionable.distinct_groupers(**qs_published_filter),
[poll1_published_version.content.pk],
transform=lambda x: x.pk,
Expand All @@ -72,7 +72,7 @@ def test_queryset_filter_for_distinct_groupers(self):

qs_archive_filter = {"versions__state__in": [ARCHIVED]}
# Should be two archived versions
self.assertQuerysetEqual(
self.assertQuerySetEqual(
versionable.distinct_groupers(**qs_archive_filter),
[poll1_archived_version.content.pk, poll2_archived_version.content.pk],
transform=lambda x: x.pk,
Expand All @@ -93,7 +93,7 @@ def test_for_grouper(self):
copy_function=default_copy,
)

self.assertQuerysetEqual(
self.assertQuerySetEqual(
versionable.for_grouper(self.initial_version.content.poll),
[self.initial_version.content.pk, poll1_version2.content.pk],
transform=lambda x: x.pk,
Expand Down
4 changes: 2 additions & 2 deletions tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def test_filter_by_grouper(self):

versions_for_grouper = Version.objects.filter_by_grouper(poll)

self.assertQuerysetEqual(
self.assertQuerySetEqual(
versions_for_grouper,
[versions[0].pk, versions[1].pk],
transform=lambda o: o.pk,
Expand All @@ -282,7 +282,7 @@ def test_filter_by_grouper_doesnt_include_other_content_types(self):
versions_for_grouper = Version.objects.filter_by_grouper(pv.content.poll)

# Only poll version included
self.assertQuerysetEqual(
self.assertQuerySetEqual(
versions_for_grouper, [pv.pk], transform=lambda o: o.pk, ordered=False
)

Expand Down

0 comments on commit 7bf9010

Please sign in to comment.