From fd628f3e540425b883f36a9c0d288ef1aafdb19e Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Sat, 14 Mar 2015 19:41:15 -0400 Subject: Removed deprecated support for positional args. --- tests/test_extensions.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests') 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)]), '

Some Header

\n' '

Another Header

' ) @@ -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']), '

A Header

' ) @@ -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']), '

Header1

\n' '

Header2

' ) # 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']), '

Header1

\n' '

Header2

' ) @@ -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', -- cgit v1.2.3