File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import json
22
3- from django .template .loader import get_template
4-
53from wagtail .models import Site
64from 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 ()
You can’t perform that action at this time.
0 commit comments