MCPcopy
hub / github.com/getpelican/pelican / test_category_link_syntax

Method test_category_link_syntax

pelican/tests/test_contents.py:1005–1018  ·  view source on GitHub ↗

{category} link syntax triggers url replacement.

(self)

Source from the content-addressed store, hash-verified

1003 self.assertNotEqual(content, html)
1004
1005 def test_category_link_syntax(self):
1006 "{category} link syntax triggers url replacement."
1007
1008 html = '<a href="{category}foo">link</a>'
1009 page = Page(
1010 content=html,
1011 metadata={"title": "fakepage"},
1012 settings=self.settings,
1013 source_path=os.path.join("dir", "otherdir", "fakepage.md"),
1014 context=self.context,
1015 )
1016 content = page.get_content("")
1017
1018 self.assertNotEqual(content, html)
1019
1020 def test_author_link_syntax(self):
1021 "{author} link syntax triggers url replacement."

Callers

nothing calls this directly

Calls 2

PageClass · 0.90
get_contentMethod · 0.80

Tested by

no test coverage detected