mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Fix test_importer.py #3376
This commit is contained in:
parent
513abbfdc6
commit
684547db00
1 changed files with 1 additions and 1 deletions
|
|
@ -363,7 +363,7 @@ class TestWordpressXmlImporter(TestCaseWithCLocale):
|
|||
test_post = filter(lambda p: p[0].startswith("Code in List"), self.posts)
|
||||
with temporary_folder() as temp:
|
||||
md = next(r(f) for f in silent_f2p(test_post, "markdown", temp))
|
||||
sample_line = re.search(r"- This is a code sample", md).group(0)
|
||||
sample_line = re.search(r"-\s+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