diff options
author | Waylan Limberg <waylan.limberg@icloud.com> | 2015-03-14 19:41:15 -0400 |
---|---|---|
committer | Waylan Limberg <waylan.limberg@icloud.com> | 2018-01-11 19:04:49 -0500 |
commit | fd628f3e540425b883f36a9c0d288ef1aafdb19e (patch) | |
tree | ae9e7479f87736201c3fe0efc4c96049ba0d42d3 /tests | |
parent | 997063da6ae18692eab45e8d695e9dbc5aea3efe (diff) | |
download | markdown-fd628f3e540425b883f36a9c0d288ef1aafdb19e.tar.gz markdown-fd628f3e540425b883f36a9c0d288ef1aafdb19e.tar.bz2 markdown-fd628f3e540425b883f36a9c0d288ef1aafdb19e.zip |
Removed deprecated support for positional args.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_extensions.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_extensions.py b/tests/test_extensions.py index 490d55b..37b6fd6 100644 --- a/tests/test_extensions.py +++ b/tests/test_extensions.py @@ -408,7 +408,7 @@ class TestHeaderId(unittest.TestCase): text = '# Some Header\n# Another Header' self.assertEqual( - markdown.markdown(text, [markdown.extensions.headerid.HeaderIdExtension(forceid=False)]), + markdown.markdown(text, extensions=[markdown.extensions.headerid.HeaderIdExtension(forceid=False)]), '<h1>Some Header</h1>\n' '<h1>Another Header</h1>' ) @@ -421,7 +421,7 @@ header_forceid: Off # A Header''' self.assertEqual( - markdown.markdown(text, ['markdown.extensions.headerid', 'markdown.extensions.meta']), + markdown.markdown(text, extensions=['markdown.extensions.headerid', 'markdown.extensions.meta']), '<h2>A Header</h2>' ) @@ -430,13 +430,13 @@ header_forceid: Off text = '# Header1 {: #foo }\n# Header2 {: .bar }' self.assertEqual( - markdown.markdown(text, ['markdown.extensions.headerid', 'markdown.extensions.attr_list']), + markdown.markdown(text, extensions=['markdown.extensions.headerid', 'markdown.extensions.attr_list']), '<h1 id="foo">Header1</h1>\n' '<h1 class="bar" id="header2">Header2</h1>' ) # Switch order extensions are loaded - should be no change in behavior. self.assertEqual( - markdown.markdown(text, ['markdown.extensions.attr_list', 'markdown.extensions.headerid']), + markdown.markdown(text, extensions=['markdown.extensions.attr_list', 'markdown.extensions.headerid']), '<h1 id="foo">Header1</h1>\n' '<h1 class="bar" id="header2">Header2</h1>' ) @@ -540,7 +540,7 @@ class TestWikiLinks(unittest.TestCase): """ Test Simple Settings. """ self.assertEqual(markdown.markdown( - self.text, [ + self.text, extensions=[ markdown.extensions.wikilinks.WikiLinkExtension( base_url='/wiki/', end_url='.html', |