mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge pull request #3114 from mart-e/import-markdown-wp
This commit is contained in:
commit
1b360acafa
2 changed files with 6 additions and 3 deletions
|
|
@ -317,7 +317,7 @@ class TestWordpressXmlImporter(unittest.TestCase):
|
|||
self.posts)
|
||||
with temporary_folder() as temp:
|
||||
md = [r(f) for f in silent_f2p(test_post, 'markdown', temp)][0]
|
||||
sample_line = re.search(r'- This is a code sample', md).group(0)
|
||||
sample_line = re.search(r'- This is a code sample', md).group(0)
|
||||
code_line = re.search(r'\s+a = \[1, 2, 3\]', md).group(0)
|
||||
self.assertTrue(sample_line.rindex('This') < code_line.rindex('a'))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue