snap_test_code_md.py 571 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_multi_line_code_markdown 1"
  8. ] = """<pre><code>&lt;script&gt;
  9. alert("!")
  10. &lt;/script&gt;
  11. </code></pre>"""
  12. snapshots[
  13. "test_multi_line_code_markdown_with_language 1"
  14. ] = """<pre><code class="javascript">&lt;script&gt;
  15. alert("!")
  16. &lt;/script&gt;
  17. </code></pre>"""
  18. snapshots[
  19. "test_single_line_code_markdown 1"
  20. ] = '<p><code>&lt;script&gt;alert("!")&lt;/script&gt;</code></p>'