Fixed markdown test

The pygments rendering of invalid json changed in  pygments>=2.7.3
This commit is contained in:
David Smith 2021-03-31 21:48:45 +01:00
parent 0323d6f895
commit e6fceb4927

View File

@ -26,7 +26,7 @@ indented
``` json
[{
"alpha": 1,
"beta: "this is a string"
"beta": "this is a string"
}]
```"""
@ -48,20 +48,18 @@ MARKDOWN_gte_33 = """
<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>
<span class="nt">&quot;beta&quot;</span><span class="p">:</span>\
<span class="s2">&quot;this is a string&quot;</span><br />\
<span class="p">}]</span><br /></pre></div>
<p><br /></p>"""
MARKDOWN_lt_33 = """
<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>
<span class="nt">&quot;beta&quot;</span><span class="p">:</span>\
<span class="s2">&quot;this is a string&quot;</span><br />\
<span class="p">}]</span><br /></pre></div>
<p><br /></p>"""
@ -112,7 +110,7 @@ class TestViewNamesAndDescriptions(TestCase):
``` json
[{
"alpha": 1,
"beta: "this is a string"
"beta": "this is a string"
}]
```"""