aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_apis.py
diff options
context:
space:
mode:
authorWaylan Limberg <waylan.limberg@icloud.com>2014-08-29 10:25:29 -0400
committerWaylan Limberg <waylan.limberg@icloud.com>2014-08-29 10:25:29 -0400
commitb1643eb058f44a05523b118632c7b8181b2ffbe7 (patch)
tree8d07922af20f7ca0cdddd6b52365f35cfaa691f0 /tests/test_apis.py
parent050c9af032a9147f9072b81eb93cbf16ebcad5c1 (diff)
downloadmarkdown-b1643eb058f44a05523b118632c7b8181b2ffbe7.tar.gz
markdown-b1643eb058f44a05523b118632c7b8181b2ffbe7.tar.bz2
markdown-b1643eb058f44a05523b118632c7b8181b2ffbe7.zip
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.
Diffstat (limited to 'tests/test_apis.py')
-rw-r--r--tests/test_apis.py18
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~~~'
}
}