upgrade pyYAML supported versions in setup.py (#1478)

Fix test using pyYAML
This commit is contained in:
Jonas Boecquaert
2022-03-07 18:08:38 +01:00
committed by GitHub
parent a1dddf62d4
commit 37f729ceb5
2 changed files with 2 additions and 2 deletions

View File

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

View File

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