feat: rebuild site content management
Replace legacy FAQ, downloads, and release flows with project and blog publishing. Add configurable branding and theme fields plus clean-start Compose seeding support.
This commit is contained in:
@@ -59,3 +59,16 @@ class SiteBrandingTemplateTests(TestCase):
|
||||
|
||||
self.assertContains(response, "images/com2care-mark.svg")
|
||||
self.assertContains(response, "images/com2care-care-team.jpg")
|
||||
|
||||
def test_site_identity_and_theme_are_admin_configurable(self):
|
||||
branding = SiteBranding.load()
|
||||
branding.site_name = "Care Research Network"
|
||||
branding.short_name = "CRN"
|
||||
branding.primary_color = "#123456"
|
||||
branding.save()
|
||||
|
||||
response = self.client.get(reverse("pages:home"))
|
||||
|
||||
self.assertContains(response, "Care Research Network")
|
||||
self.assertContains(response, ">CRN</span>")
|
||||
self.assertContains(response, "--accent-blue:#123456")
|
||||
|
||||
Reference in New Issue
Block a user