feat: make people group labels editable
This commit is contained in:
@@ -60,6 +60,16 @@ class AboutViewTest(TestCase):
|
||||
response = self.client.get(reverse("pages:about"))
|
||||
self.assertNotContains(response, "Nobody yet")
|
||||
|
||||
def test_about_role_heading_uses_shared_admin_setting(self):
|
||||
section = AboutSection.objects.create(section_type=AboutSection.TYPE_PEOPLE, title="Our people")
|
||||
AboutSectionItem.objects.create(section=section, title="Team lead", role="Leader")
|
||||
branding = SiteBranding.load()
|
||||
branding.lead_group_label = "Leadership"
|
||||
branding.save(update_fields=["lead_group_label"])
|
||||
response = self.client.get(reverse("pages:about"))
|
||||
self.assertContains(response, "Leadership")
|
||||
self.assertNotContains(response, "Lead / Leader")
|
||||
|
||||
|
||||
class BlogViewTest(TestCase):
|
||||
def setUp(self):
|
||||
|
||||
Reference in New Issue
Block a user