mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-29 01:22:07 +01:00
Tweak aging pages report test to not rely on filtering by content_type=Page
This commit is contained in:
parent
2f22ab3a53
commit
42b8c32176
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user