Skip to content

Commit

Permalink
debugging :-/
Browse files Browse the repository at this point in the history
  • Loading branch information
mart-e committed Jun 4, 2023
1 parent c93e41c commit 467e3da
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pelican/tests/test_importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,15 +338,16 @@ def test_convert_caption_to_figure(self):
def r(f):
with open(f, encoding='utf-8') as infile:
return infile.read()
silent_f2p = mute(True)(fields2pelican)
# silent_f2p = mute(True)(fields2pelican)
silent_f2p = fields2pelican
test_post = filter(
lambda p: p[0].startswith("Caption on image"),
self.posts)
with temporary_folder() as temp:
md = [r(f) for f in silent_f2p(test_post, 'markdown', temp)][0]
caption = re.search(r'\[caption', md)
self.assertFalse(caption)
print(md)
raise Exception(md)
images = re.findall(r'\<img src="(.*?)"', md)
self.assertEqual(images, [
'/theme/img/xpelican.png.pagespeed.ic.Rjep0025-y.png',
Expand Down

0 comments on commit 467e3da

Please sign in to comment.