bump pygments (security hygiene)

Addresses https://github.com/encode/django-rest-framework/security/dependabot/9
This commit is contained in:
Peter Thomassen 2024-04-26 16:01:11 +02:00
parent d58b8da591
commit 22377241a8
No known key found for this signature in database
GPG Key ID: 5203651ED2F34D28
3 changed files with 3 additions and 3 deletions

View File

@ -6,5 +6,5 @@ django-guardian>=2.4.0,<2.5
inflection==0.5.1 inflection==0.5.1
markdown>=3.3.7 markdown>=3.3.7
psycopg2-binary>=2.9.5,<2.10 psycopg2-binary>=2.9.5,<2.10
pygments>=2.12.0,<2.14.0 pygments~=2.17.0
pyyaml>=5.3.1,<5.4 pyyaml>=5.3.1,<5.4

View File

@ -41,7 +41,7 @@ MARKDOWN_DOCSTRING = """<h2 id="an-example-docstring">an example docstring</h2>
</code></pre> </code></pre>
<p>indented</p> <p>indented</p>
<h2 id="hash-style-header">hash style header</h2> <h2 id="hash-style-header">hash style header</h2>
<div class="highlight"><pre><span></span><span class="p">[{</span><span class="w"></span><br /><span class="w"> </span><span class="nt">&quot;alpha&quot;</span><span class="p">:</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"></span><br /><span class="w"> </span><span class="nt">&quot;beta&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;this is a string&quot;</span><span class="w"></span><br /><span class="p">}]</span><span class="w"></span><br /></pre></div> <div class="highlight"><pre><span></span><span class="p">[{</span><br /><span class="w"> </span><span class="nt">&quot;alpha&quot;</span><span class="p">:</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><br /><span class="w"> </span><span class="nt">&quot;beta&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;this is a string&quot;</span><br /><span class="p">}]</span><br /></pre></div>
<p><br /></p>""" <p><br /></p>"""

View File

@ -910,7 +910,7 @@ class TestDocumentationRenderer(TestCase):
'link': coreapi.Link(url='/data/', action='get', fields=[]), 'link': coreapi.Link(url='/data/', action='get', fields=[]),
} }
html = template.render(context) html = template.render(context)
assert 'testcases list' in html assert 'testcases<span class="w"> </span>list' in html
@pytest.mark.skipif(not coreapi, reason='coreapi is not installed') @pytest.mark.skipif(not coreapi, reason='coreapi is not installed')