Skip to content

Commit

Permalink
Fix up the references to people index in projects tests
Browse files Browse the repository at this point in the history
Looks like an overzealous refactor added extra words
  • Loading branch information
haydngreatnews committed Jun 11, 2024
1 parent ac0069f commit e47b510
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cdhweb/projects/tests/test_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
from cdhweb.projects.models import (
Grant,
GrantType,
PeopleLandingPageArchivedArchived,
Project,
ProjectRelatedLink,
ProjectsLandingPageArchived,
)


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

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


class TestPeopleLandingPageArchived(WagtailPageTestCase):
class TestProjectsLandingPageArchived(WagtailPageTestCase):
def test_parentpage_types(self):
"""projects link page should not be creatable in admin"""
self.assertAllowedParentPageTypes(PeopleLandingPageArchived, [])
self.assertAllowedParentPageTypes(ProjectsLandingPageArchived, [])

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

0 comments on commit e47b510

Please sign in to comment.