mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
wordpress importer support for draft article
This commit is contained in:
parent
2fc442fe2d
commit
77231e97c0
2 changed files with 24 additions and 14 deletions
|
|
@ -254,13 +254,13 @@ class TestBuildHeader(unittest.TestCase):
|
|||
|
||||
def test_galleries_added_to_header(self):
|
||||
header = build_header('test', None, None, None, None,
|
||||
None, ['output/test1', 'output/test2'])
|
||||
None, attachments=['output/test1', 'output/test2'])
|
||||
self.assertEqual(header, 'test\n####\n' + ':attachments: output/test1, '
|
||||
+ 'output/test2\n\n')
|
||||
|
||||
def test_galleries_added_to_markdown_header(self):
|
||||
header = build_markdown_header('test', None, None, None, None, None,
|
||||
['output/test1', 'output/test2'])
|
||||
attachments=['output/test1', 'output/test2'])
|
||||
self.assertEqual(header, 'Title: test\n' + 'Attachments: output/test1, '
|
||||
+ 'output/test2\n\n')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue