From b1643eb058f44a05523b118632c7b8181b2ffbe7 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Fri, 29 Aug 2014 10:25:29 -0400 Subject: All extension tests now use python dot notation. All named extensions now use python dot notation in the tests - including all builtin extensions (eg: 'extra' => 'markdown.extensions.extra'). This is in anticipation of #336. Note there are a few tests (in the error tests) that will still need updating, but not till we make the change as they will test for the new error message. --- tests/test_apis.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'tests/test_apis.py') 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~~~' } } -- cgit v1.2.3