mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-24 23:19:47 +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
|
inflection==0.5.1
|
||||||
markdown==3.3
|
markdown==3.3
|
||||||
psycopg2-binary>=2.9.5,<2.10
|
psycopg2-binary>=2.9.5,<2.10
|
||||||
pygments==2.12
|
pygments>=2.7.1,<3.0
|
||||||
pyyaml>=5.3.1,<5.4
|
pyyaml>=5.3.1,<5.4
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import re
|
import re
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
from collections.abc import MutableMapping
|
from collections.abc import MutableMapping
|
||||||
|
from xml.etree import ElementTree
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from django.core.cache import cache
|
from django.core.cache import cache
|
||||||
|
@ -852,7 +853,8 @@ 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
|
text = "".join(ElementTree.fromstring(html).itertext())
|
||||||
|
assert 'testcases list' in text
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skipif(not coreapi, reason='coreapi is not installed')
|
@pytest.mark.skipif(not coreapi, reason='coreapi is not installed')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user