snap_test_code_bbcode.py 689 B

12345678910111213141516171819202122232425262728
  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["test_single_line_code 1"] = '<pre><code>echo("Hello!");</code></pre>'
  7. snapshots[
  8. "test_multi_line_code 1"
  9. ] = """<pre><code>echo("Hello!");
  10. echo("World!");</code></pre>"""
  11. snapshots[
  12. "test_code_with_language_parameter 1"
  13. ] = '<pre><code class="php">echo("Hello!");</code></pre>'
  14. snapshots[
  15. "test_code_with_quoted_language_parameter 1"
  16. ] = '<pre><code class="php">echo("Hello!");</code></pre>'
  17. snapshots[
  18. "test_code_block_disables_parsing 1"
  19. ] = "<pre><code>Dolor [b]met.[/b]</code></pre>"