Skip to content

Commit d0550c7

Browse files
committed
Remove redundant template existence tests
1 parent f772e23 commit d0550c7

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

tbx/core/tests/test_jsonld.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import json
22

3-
from django.template.loader import get_template
4-
53
from wagtail.models import Site
64
from wagtail.test.utils import WagtailPageTestCase
75

@@ -131,21 +129,6 @@ def test_blog_posting_template_included(self):
131129
self.assertGreater(len(schema), 0, "BlogPosting JSON-LD not found")
132130
self.assertEqual(schema[0]["headline"], "Test Blog Post")
133131

134-
def test_breadcrumb_template_exists(self):
135-
"""Test that breadcrumb JSON-LD template exists."""
136-
try:
137-
template = get_template(
138-
"patterns/navigation/components/breadcrumbs-jsonld.html"
139-
)
140-
self.assertIsNotNone(template)
141-
except Exception as e:
142-
self.fail(f"Breadcrumb JSON-LD template not found: {e}")
143-
144-
def test_jsonld_script_tags_present(self):
145-
"""Test that JSON-LD script tags are present in the rendered HTML."""
146-
org_data = self._get_organization_jsonld()
147-
self.assertIsNotNone(org_data)
148-
149132
def test_multiple_jsonld_scripts(self):
150133
"""Test that multiple JSON-LD scripts can be present on a page."""
151134
org_data = self._get_organization_jsonld()

0 commit comments

Comments
 (0)