|
5 | 5 | from cdhweb.projects.models import (
|
6 | 6 | Grant,
|
7 | 7 | GrantType,
|
8 |
| - PeopleLandingPageArchivedArchived, |
9 | 8 | Project,
|
10 | 9 | ProjectRelatedLink,
|
| 10 | + ProjectsLandingPageArchived, |
11 | 11 | )
|
12 | 12 |
|
13 | 13 |
|
@@ -94,18 +94,18 @@ def test_sitemap(self, rf, derrida):
|
94 | 94 | class TestProjectPage(WagtailPageTestCase):
|
95 | 95 | def test_parent_pages(self):
|
96 | 96 | """project can only be created under projects link page"""
|
97 |
| - self.assertAllowedParentPageTypes(Project, [PeopleLandingPageArchivedArchived]) |
| 97 | + self.assertAllowedParentPageTypes(Project, [ProjectsLandingPageArchived]) |
98 | 98 |
|
99 | 99 | def test_subpages(self):
|
100 | 100 | """project page can't have children"""
|
101 | 101 | self.assertAllowedSubpageTypes(Project, [])
|
102 | 102 |
|
103 | 103 |
|
104 |
| -class TestPeopleLandingPageArchived(WagtailPageTestCase): |
| 104 | +class TestProjectsLandingPageArchived(WagtailPageTestCase): |
105 | 105 | def test_parentpage_types(self):
|
106 | 106 | """projects link page should not be creatable in admin"""
|
107 |
| - self.assertAllowedParentPageTypes(PeopleLandingPageArchived, []) |
| 107 | + self.assertAllowedParentPageTypes(ProjectsLandingPageArchived, []) |
108 | 108 |
|
109 | 109 | def test_subpage_types(self):
|
110 | 110 | """projects link page only allowed child is project page"""
|
111 |
| - self.assertAllowedSubpageTypes(PeopleLandingPageArchived, [Project, LinkPage]) |
| 111 | + self.assertAllowedSubpageTypes(ProjectsLandingPageArchived, [Project, LinkPage]) |
0 commit comments