From 42b8c321764c336421e54802c5a82cc9989051df Mon Sep 17 00:00:00 2001 From: Matt Westcott Date: Thu, 18 Jan 2024 17:34:00 +0000 Subject: [PATCH] Tweak aging pages report test to not rely on filtering by content_type=Page --- wagtail/admin/tests/test_reports_views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wagtail/admin/tests/test_reports_views.py b/wagtail/admin/tests/test_reports_views.py index 472e60edda..3a72d20473 100644 --- a/wagtail/admin/tests/test_reports_views.py +++ b/wagtail/admin/tests/test_reports_views.py @@ -759,12 +759,12 @@ class TestFilteredAgingPagesView(WagtailTestUtils, TestCase): def test_filter_by_content_type(self): response = self.get( - params={"content_type": self.home_page.specific.content_type.pk} + params={"content_type": self.aboutus_page.specific.content_type.pk} ) self.assertEqual(response.status_code, 200) - self.assertContains(response, self.home_page.title) - self.assertNotContains(response, self.aboutus_page.title) + self.assertContains(response, self.aboutus_page.title) + self.assertNotContains(response, self.home_page.title) def test_filter_by_last_published_at(self): self.home_page.last_published_at = timezone.now()