From 965c06c398a394b1da06651bb4ed62be7609a946 Mon Sep 17 00:00:00 2001 From: Dmitry Shachnev Date: Sat, 13 May 2023 21:56:33 +0300 Subject: Port all smarty tests to the new framework --- tests/test_extensions.py | 34 ---------------------------------- 1 file changed, 34 deletions(-) (limited to 'tests/test_extensions.py') diff --git a/tests/test_extensions.py b/tests/test_extensions.py index ad985c3..c8cee99 100644 --- a/tests/test_extensions.py +++ b/tests/test_extensions.py @@ -629,37 +629,3 @@ class TestTOC(TestCaseWithAssertStartsWith): '\n' # noqa '

[TOC]

' # noqa ) - - -class TestSmarty(unittest.TestCase): - def setUp(self): - config = { - 'smarty': [ - ('smart_angled_quotes', True), - ('substitutions', { - 'ndash': '\u2013', - 'mdash': '\u2014', - 'ellipsis': '\u2026', - 'left-single-quote': '‚', # `sb` is not a typo! - 'right-single-quote': '‘', - 'left-double-quote': '„', - 'right-double-quote': '“', - 'left-angle-quote': '[', - 'right-angle-quote': ']', - }), - ] - } - self.md = markdown.Markdown( - extensions=['smarty'], - extension_configs=config - ) - - def testCustomSubstitutions(self): - text = """<< The "Unicode char of the year 2014" -is the 'mdash': --- -Must not be confused with 'ndash' (--) ... >> -""" - correct = """

[ The „Unicode char of the year 2014“ -is the ‚mdash‘: \u2014 -Must not be confused with ‚ndash‘ (\u2013) \u2026 ]

""" - self.assertEqual(self.md.convert(text), correct) -- cgit v1.2.1