Test all pages have templates

This commit is contained in:
Jake Howard 2022-07-16 15:50:01 +01:00
parent 6b96688adb
commit c110318608
Signed by: jake
GPG Key ID: 57AFB45680EDD477

View File

@ -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: