snap_test_short_image_markdown.py 803 B

1234567891011121314151617181920212223242526
  1. # -*- coding: utf-8 -*-
  2. # snapshottest: v1 - https://goo.gl/zC4yUc
  3. from __future__ import unicode_literals
  4. from snapshottest import Snapshot
  5. snapshots = Snapshot()
  6. snapshots[
  7. "test_short_image_markdown[base] 1"
  8. ] = '<p><img alt="somewhere.com/image.jpg" src="http://somewhere.com/image.jpg" /></p>'
  9. snapshots[
  10. "test_short_image_markdown[space-multiple-words] 1"
  11. ] = "<p>! (space with other words)</p>"
  12. snapshots["test_short_image_markdown[space-one-word] 1"] = "<p>! (space)</p>"
  13. snapshots[
  14. "test_short_image_markdown[text-before-mark] 1"
  15. ] = '<p>Text before exclamation mark<img alt="somewhere.com/image.jpg" src="http://somewhere.com/image.jpg" /></p>'
  16. snapshots[
  17. "test_short_image_markdown[text-before-with-space] 1"
  18. ] = "<p>Text before with space in between! (sometext)</p>"