Test all pages have templates
This commit is contained in:
parent
6b96688adb
commit
c110318608
1 changed files with 5 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
from django.template.loader import get_template
|
||||
from django.test import SimpleTestCase
|
||||
from wagtail.rich_text import features as richtext_feature_registry
|
||||
|
||||
|
@ -24,6 +25,10 @@ class BasePageTestCase(SimpleTestCase):
|
|||
f"{page_model} does not inherit from {BasePage}.",
|
||||
)
|
||||
|
||||
def test_pages_have_template(self) -> None:
|
||||
for page in get_page_models():
|
||||
get_template(page.template)
|
||||
|
||||
|
||||
class YouTubeLiteEmbedFinderTestCase(SimpleTestCase):
|
||||
def test_finds_video_id(self) -> None:
|
||||
|
|
Loading…
Reference in a new issue