From aed3ef2ac30b39c40317b066e641921d604f9253 Mon Sep 17 00:00:00 2001 From: Mathias Rav Date: Fri, 3 Aug 2018 14:30:39 +0200 Subject: [PATCH] Add test for text before and after image --- tests/plugins/images/test_markdown.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/plugins/images/test_markdown.py b/tests/plugins/images/test_markdown.py index 66ceb8fb..07d8a362 100644 --- a/tests/plugins/images/test_markdown.py +++ b/tests/plugins/images/test_markdown.py @@ -3,6 +3,14 @@ from wiki.core import markdown class ImageMarkdownTests(RequireRootArticleMixin, TestBase): + def test_before_and_after(self): + md = markdown.ArticleMarkdown(article=self.root_article) + md_text = md.convert("before [image:1 align:left] after") + before_pos = md_text.index('before') + figure_pos = md_text.index('