Skip to content

Commit 834227a

Browse files
committed
Remove redundant assertions
1 parent 2759764 commit 834227a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tbx/core/tests/test_jsonld.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,9 @@ def test_organization_jsonld_structure(self):
7676
def test_organization_jsonld_logo_url(self):
7777
"""Test that Organization JSON-LD includes correct logo URL."""
7878
org_data = self._get_organization_jsonld()
79-
logo_url = org_data["logo"]
80-
81-
# Test that logo URL is correct
82-
self.assertEqual(logo_url, "https://torchbox.com/android-chrome-512x512.png")
83-
self.assertTrue(logo_url.startswith("https://"), "Logo URL should be HTTPS")
79+
self.assertEqual(
80+
org_data["logo"], "https://torchbox.com/android-chrome-512x512.png"
81+
)
8482

8583

8684
class TestJSONLDTemplateInclusion(WagtailPageTestCase):
@@ -115,7 +113,7 @@ def _get_organization_jsonld(self):
115113
def test_base_template_includes_jsonld_block(self):
116114
"""Test that the base template includes the extra_jsonld block."""
117115
org_data = self._get_organization_jsonld()
118-
self.assertEqual(org_data["@type"], "Organization")
116+
self.assertEqual(org_data["name"], "Torchbox")
119117

120118
def test_breadcrumb_template_included(self):
121119
"""Test that breadcrumb JSON-LD template is included."""

0 commit comments

Comments
 (0)