Skip to content

Commit e47b510

Browse files
Fix up the references to people index in projects tests
Looks like an overzealous refactor added extra words
1 parent ac0069f commit e47b510

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cdhweb/projects/tests/test_pages.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
from cdhweb.projects.models import (
66
Grant,
77
GrantType,
8-
PeopleLandingPageArchivedArchived,
98
Project,
109
ProjectRelatedLink,
10+
ProjectsLandingPageArchived,
1111
)
1212

1313

@@ -94,18 +94,18 @@ def test_sitemap(self, rf, derrida):
9494
class TestProjectPage(WagtailPageTestCase):
9595
def test_parent_pages(self):
9696
"""project can only be created under projects link page"""
97-
self.assertAllowedParentPageTypes(Project, [PeopleLandingPageArchivedArchived])
97+
self.assertAllowedParentPageTypes(Project, [ProjectsLandingPageArchived])
9898

9999
def test_subpages(self):
100100
"""project page can't have children"""
101101
self.assertAllowedSubpageTypes(Project, [])
102102

103103

104-
class TestPeopleLandingPageArchived(WagtailPageTestCase):
104+
class TestProjectsLandingPageArchived(WagtailPageTestCase):
105105
def test_parentpage_types(self):
106106
"""projects link page should not be creatable in admin"""
107-
self.assertAllowedParentPageTypes(PeopleLandingPageArchived, [])
107+
self.assertAllowedParentPageTypes(ProjectsLandingPageArchived, [])
108108

109109
def test_subpage_types(self):
110110
"""projects link page only allowed child is project page"""
111-
self.assertAllowedSubpageTypes(PeopleLandingPageArchived, [Project, LinkPage])
111+
self.assertAllowedSubpageTypes(ProjectsLandingPageArchived, [Project, LinkPage])

0 commit comments

Comments
 (0)