mirror of
https://github.com/LukeHagar/connexion.git
synced 2025-12-09 20:37:46 +00:00
upgrade pyYAML supported versions in setup.py (#1478)
Fix test using pyYAML
This commit is contained in:
2
setup.py
2
setup.py
@@ -22,7 +22,7 @@ version = read_version('connexion')
|
|||||||
install_requires = [
|
install_requires = [
|
||||||
'clickclick>=1.2,<21',
|
'clickclick>=1.2,<21',
|
||||||
'jsonschema>=2.5.1,<5',
|
'jsonschema>=2.5.1,<5',
|
||||||
'PyYAML>=5.1,<6',
|
'PyYAML>=5.1,<7',
|
||||||
'requests>=2.9.1,<3',
|
'requests>=2.9.1,<3',
|
||||||
'inflection>=0.3.1,<0.6',
|
'inflection>=0.3.1,<0.6',
|
||||||
'werkzeug>=1.0,<3',
|
'werkzeug>=1.0,<3',
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ async def test_swagger_yaml(aiohttp_api_spec_dir, aiohttp_client):
|
|||||||
data_ = await spec_response.read()
|
data_ = await spec_response.read()
|
||||||
|
|
||||||
assert spec_response.status == 200
|
assert spec_response.status == 200
|
||||||
assert api.specification.raw == yaml.load(data_)
|
assert api.specification.raw == yaml.load(data_, yaml.FullLoader)
|
||||||
|
|
||||||
|
|
||||||
async def test_no_swagger_json(aiohttp_api_spec_dir, aiohttp_client):
|
async def test_no_swagger_json(aiohttp_api_spec_dir, aiohttp_client):
|
||||||
|
|||||||
Reference in New Issue
Block a user