mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Updates test cases to use MARKDOWN
This commit is contained in:
parent
35dba138e0
commit
9e399e7a05
2 changed files with 10 additions and 9 deletions
|
|
@ -208,18 +208,17 @@ class TestPelican(LoggedTestCase):
|
|||
msg="Writing .*",
|
||||
level=logging.INFO)
|
||||
|
||||
def test_md_extensions_list_deprecation(self):
|
||||
"""Test that a warning is issued if MD_EXTENSIONS is a list"""
|
||||
def test_md_extensions_deprecation(self):
|
||||
"""Test that a warning is issued if MD_EXTENSIONS is used"""
|
||||
settings = read_settings(path=None, override={
|
||||
'PATH': INPUT_PATH,
|
||||
'OUTPUT_PATH': self.temp_path,
|
||||
'CACHE_PATH': self.temp_cache,
|
||||
'MD_EXTENSIONS': ['meta'],
|
||||
'MD_EXTENSIONS': {},
|
||||
})
|
||||
pelican = Pelican(settings=settings)
|
||||
mute(True)(pelican.run)()
|
||||
self.assertIsInstance(pelican.settings['MD_EXTENSIONS'], dict)
|
||||
self.assertLogCountEqual(
|
||||
count=1,
|
||||
msg="The format of the MD_EXTENSIONS setting has changed",
|
||||
msg="MD_EXTENSIONS is deprecated use MARKDOWN instead.",
|
||||
level=logging.WARNING)
|
||||
|
|
|
|||
|
|
@ -482,10 +482,12 @@ class MdReaderTest(ReaderTest):
|
|||
# expected
|
||||
page = self.read_file(
|
||||
path='article_with_markdown_markup_extensions.md',
|
||||
MD_EXTENSIONS={
|
||||
'markdown.extensions.toc': {},
|
||||
'markdown.extensions.codehilite': {},
|
||||
'markdown.extensions.extra': {}
|
||||
MARKDOWN={
|
||||
'extension_configs': {
|
||||
'markdown.extensions.toc': {},
|
||||
'markdown.extensions.codehilite': {},
|
||||
'markdown.extensions.extra': {}
|
||||
}
|
||||
}
|
||||
)
|
||||
expected = ('<div class="toc">\n'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue