diff options
Diffstat (limited to 'tests/test_apis.py')
-rw-r--r-- | tests/test_apis.py | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/tests/test_apis.py b/tests/test_apis.py index e347cf9..b8597e8 100644 --- a/tests/test_apis.py +++ b/tests/test_apis.py @@ -560,13 +560,15 @@ class TestCliOptionParsing(unittest.TestCase): self.assertEqual(options, self.default_options) def testExtensionOption(self): - options, logging_level = parse_options(['-x', 'footnotes']) - self.default_options['extensions'] = ['footnotes'] + options, logging_level = parse_options(['-x', 'markdown.extensions.footnotes']) + self.default_options['extensions'] = ['markdown.extensions.footnotes'] self.assertEqual(options, self.default_options) def testMultipleExtensionOptions(self): - options, logging_level = parse_options(['-x', 'footnotes', '-x', 'smarty']) - self.default_options['extensions'] = ['footnotes', 'smarty'] + options, logging_level = parse_options(['-x', 'markdown.extensions.footnotes', + '-x', 'markdown.extensions.smarty']) + self.default_options['extensions'] = ['markdown.extensions.footnotes', + 'markdown.extensions.smarty'] self.assertEqual(options, self.default_options) def create_config_file(self, config): @@ -580,12 +582,12 @@ class TestCliOptionParsing(unittest.TestCase): def testExtensonConfigOption(self): config = { - 'wikilinks': { + 'markdown.extensions.wikilinks': { 'base_url': 'http://example.com/', 'end_url': '.html', 'html_class': 'test', }, - 'footnotes:FootnotesExtension': { + 'markdown.extensions.footnotes:FootnotesExtension': { 'PLACE_MARKER': '~~~footnotes~~~' } } @@ -596,12 +598,12 @@ class TestCliOptionParsing(unittest.TestCase): def testExtensonConfigOptionAsJSON(self): config = { - 'wikilinks': { + 'markdown.extensions.wikilinks': { 'base_url': 'http://example.com/', 'end_url': '.html', 'html_class': 'test', }, - 'footnotes:FootnotesExtension': { + 'markdown.extensions.footnotes:FootnotesExtension': { 'PLACE_MARKER': '~~~footnotes~~~' } } |