MCPcopy Create free account
hub / github.com/HermanMartinus/bearblog / test_python_highlighting

Method test_python_highlighting

blogs/tests.py:1475–1478  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1473 """Tests for MyRenderer.block_code() -- Pygments highlighting."""
1474
1475 def test_python_highlighting(self):
1476 result = markdown_renderer('```python\nprint("hello")\n```')
1477 self.assertIn('class="highlight"', result)
1478 self.assertIn('print', result)
1479
1480 def test_no_language_fallback(self):
1481 result = markdown_renderer('```\nplain text\n```')

Callers

nothing calls this directly

Calls 1

markdown_rendererFunction · 0.90

Tested by

no test coverage detected