Use a more lenient dependency version range specification for pygments

This commit is contained in:
James Addison 2023-01-22 11:38:13 +00:00
parent 2db0c0bf0a
commit 594299d3d9
2 changed files with 4 additions and 2 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 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

View File

@ -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')