#5221 tests: Use the correct test case data for Markdown on Python 3
Merged 2 years ago by ngompa. Opened 2 years ago by ngompa.
ngompa/pagure fix-markdown-test-py3  into  master

file modified
+3 -2
@@ -16,6 +16,7 @@ 

  import sys

  import os

  

+ import six

  import pygit2

  import markdown

  from mock import patch, MagicMock, Mock
@@ -4344,8 +4345,8 @@ 

              '<div class="markdown"><p>but not someone@pingou.com</p></div>',

          ]

  

-         if mk_321:

-             print("**** Markdown 3.2.1+ behavior")

+         if mk_321 or six.PY3:

+             print("**** Markdown 3.2.1+ and Markdown on Python 3 behavior")

              expected.append(

                  # '[![Fedora_infinity_small.png]'

                  # '(/test/issue/raw/Fedora_infinity_small.png)]'

It seems that the "new" behavior generally applies to Markdown
on Python 3, so we should test and expect that.

Pull-Request has been merged by ngompa

2 years ago
Metadata