Skip to content

TestViewNamesAndDescriptions.test_markdown test fails #8160

Closed
@mcepl

Description

@mcepl

Checklist

  • Raised initially as discussion #... (given that the test suite fail, I hope that the discussion is not necessary)
  • This cannot be dealt with as a third party library. (We prefer new functionality to be in the form of third party libraries where possible.)
  • I have reduced the issue to the simplest possible case. (again, I don't think it applies for the failing test)

When packaging this project as a package for openSUSE/Factory, this test fails:

[   15s] =================================== FAILURES ===================================
[   15s] __________________ TestViewNamesAndDescriptions.test_markdown __________________
[   15s] tests/test_description.py:170: in test_markdown
[   15s]     assert apply_markdown(DESCRIPTION) == MARKDOWN_BASE % MARKDOWN_gte_33
[   15s] E   AssertionError: assert ('<h2 id="an-example-docstring">an example docstring</h2>\n'\n '<ul>\n'\n '<li>list</li>\n'\n '<li>list</li>\n'\n '</ul>\n'\n '<h3 id="another-header">another header</h3>\n'\n '<pre><code>code block\n'\n '</code></pre>\n'\n '<p>indented</p>\n'\n '<h2 id="hash-style-header">hash style header</h2>\n'\n '<p><code>json\n'\n '[{\n'\n '    "alpha": 1,\n'\n '    "beta: "this is a string"\n'\n '}]</code></p>') == ('<h2 id="an-example-docstring">an example docstring</h2>\n'\n '<ul>\n'\n '<li>list</li>\n'\n '<li>list</li>\n'\n '</ul>\n'\n '<h3 id="another-header">another header</h3>\n'\n '<pre><code>code block\n'\n '</code></pre>\n'\n '<p>indented</p>\n'\n '<h2 id="hash-style-header">hash style header</h2>\n'\n '<div class="highlight"><pre><span></span><span class="p">[{</span><br />    '\n '<span class="nt">&quot;alpha&quot;</span><span class="p">:</span> <span '\n 'class="mi">1</span><span class="p">,</span><br />    <span '\n 'class="nt">&quot;beta: &quot;</span><span class="err">this</span> <span '\n 'class="err">is</span> <span class="err">a</span> <span '\n 'class="err">string&quot;</span><br /><span class="p">}]</span><br '\n '/></pre></div>\n'\n '<p><br /></p>')
[   15s] E       <h2 id="an-example-docstring">an example docstring</h2>
[   15s] E       <ul>
[   15s] E       <li>list</li>
[   15s] E       <li>list</li>
[   15s] E       </ul>
[   15s] E       <h3 id="another-header">another header</h3>
[   15s] E       <pre><code>code block
[   15s] E       </code></pre>
[   15s] E       <p>indented</p>
[   15s] E       <h2 id="hash-style-header">hash style header</h2>
[   15s] E     - <div class="highlight"><pre><span></span><span class="p">[{</span><br />    <span class="nt">&quot;alpha&quot;</span><span class="p">:</span> <span class="mi">1</span><span class="p">,</span><br />    <span class="nt">&quot;beta: &quot;</span><span class="err">this</span> <span class="err">is</span> <span class="err">a</span> <span class="err">string&quot;</span><br /><span class="p">}]</span><br /></pre></div>
[   15s] E     - <p><br /></p>
[   15s] E     + <p><code>json
[   15s] E     + [{
[   15s] E     +     "alpha": 1,
[   15s] E     +     "beta: "this is a string"
[   15s] E     + }]</code></p>

Using Python 3.6.14, djangorestframework-3.12.4, complete build log with all packages used and steps taken.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions