From c5cd162cb6a071b9a6ef679571a5b1d80d46fde9 Mon Sep 17 00:00:00 2001 From: Martin Morgenstern Date: Mon, 11 Apr 2016 11:27:04 +0200 Subject: Test if fenced_code honors CodeHilite option use_pygments --- tests/test_extensions.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/test_extensions.py b/tests/test_extensions.py index 19a1389..a43de79 100644 --- a/tests/test_extensions.py +++ b/tests/test_extensions.py @@ -375,6 +375,18 @@ line 3 '#line 3' ) + def testFencedLanguageAndPygmentsDisabled(self): + """ Test if fenced_code honors CodeHilite option use_pygments=False. """ + + text = '```python\nfrom __future__ import braces\n```' + md = markdown.Markdown( + extensions=[ + markdown.extensions.codehilite.CodeHiliteExtension(use_pygments=False), + 'markdown.extensions.fenced_code' + ] + ) + self.assertTrue('' in md.convert(text)) + class TestHeaderId(unittest.TestCase): """ Test HeaderId Extension. """ -- cgit v1.2.3