mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +03:00
Fixed markdown test (#7892)
The pygments rendering of invalid json changed in pygments>=2.7.3
This commit is contained in:
parent
0323d6f895
commit
96885dd9a7
|
@ -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">"alpha"</span><span class="p">:</span>\
|
||||
<span class="mi">1</span><span class="p">,</span><br />\
|
||||
<span class="nt">"beta: "</span><span class="err">this\
|
||||
</span> <span class="err">is</span> <span class="err">a</span> \
|
||||
<span class="err">string"</span><br /><span class="p">}]</span>\
|
||||
<br /></pre></div>
|
||||
<span class="nt">"beta"</span><span class="p">:</span>\
|
||||
<span class="s2">"this is a string"</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">"alpha"</span><span class="p">:</span>\
|
||||
<span class="mi">1</span><span class="p">,</span><br />\
|
||||
<span class="nt">"beta: "</span><span class="err">this\
|
||||
</span> <span class="err">is</span> <span class="err">a</span>\
|
||||
<span class="err">string"</span><br /><span class="p">}]</span>\
|
||||
<br /></pre></div>
|
||||
<span class="nt">"beta"</span><span class="p">:</span>\
|
||||
<span class="s2">"this is a string"</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"
|
||||
}]
|
||||
```"""
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user