Skip to content

Commit

Permalink
Update HomePageFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
SharmaineLim committed Dec 4, 2024
1 parent c19c14f commit 87d86ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
1 change: 1 addition & 0 deletions tbx/core/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class Meta:

class HomePageFactory(wagtail_factories.PageFactory):
title = "Home"
hero_heading = "The digital partner {for positive change}"

class Meta:
model = HomePage
Expand Down
9 changes: 1 addition & 8 deletions tbx/navigation/tests/test_link_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from django.test import TestCase

import wagtail_factories
from tbx.core.models import HomePage
from tbx.core.factories import HomePageFactory
from tbx.images.models import CustomImage
from tbx.navigation.blocks import (
LinkBlock,
Expand All @@ -18,13 +18,6 @@ class Meta:
model = CustomImage


class HomePageFactory(wagtail_factories.PageFactory):
title = "Home"

class Meta:
model = HomePage


class TestLinkBlock(TestCase):
def setUp(self):
root_page = wagtail_factories.PageFactory(parent=None)
Expand Down

0 comments on commit 87d86ee

Please sign in to comment.