mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-23 22:49:50 +03:00
Use a more lenient dependency version range specification for pygments
This commit is contained in:
parent
2db0c0bf0a
commit
594299d3d9
|
@ -6,5 +6,5 @@ django-guardian>=2.4.0,<2.5
|
|||
inflection==0.5.1
|
||||
markdown==3.3
|
||||
psycopg2-binary>=2.9.5,<2.10
|
||||
pygments==2.12
|
||||
pygments>=2.7.1,<3.0
|
||||
pyyaml>=5.3.1,<5.4
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import re
|
||||
from collections import OrderedDict
|
||||
from collections.abc import MutableMapping
|
||||
from xml.etree import ElementTree
|
||||
|
||||
import pytest
|
||||
from django.core.cache import cache
|
||||
|
@ -852,7 +853,8 @@ class TestDocumentationRenderer(TestCase):
|
|||
'link': coreapi.Link(url='/data/', action='get', fields=[]),
|
||||
}
|
||||
html = template.render(context)
|
||||
assert 'testcases list' in html
|
||||
text = "".join(ElementTree.fromstring(html).itertext())
|
||||
assert 'testcases list' in text
|
||||
|
||||
|
||||
@pytest.mark.skipif(not coreapi, reason='coreapi is not installed')
|
||||
|
|
Loading…
Reference in New Issue
Block a user