Fixing test api docs

This commit is contained in:
nad 2020-03-11 13:22:24 +01:00
parent c172a8ca4b
commit ce8bcc7577
1 changed files with 3 additions and 2 deletions

View File

@ -31,7 +31,8 @@ def test_api_docs(client: Client):
'/documents/devices/', '/documents/devices/',
'/documents/static/{filename}', '/documents/static/{filename}',
'/tags/{tag_id}/device/{device_id}', '/tags/{tag_id}/device/{device_id}',
'/devices/static/{filename}' '/devices/static/{filename}',
'/deliverynotes/'
} }
assert docs['info'] == {'title': 'Devicehub', 'version': '0.2'} assert docs['info'] == {'title': 'Devicehub', 'version': '0.2'}
assert docs['components']['securitySchemes']['bearerAuth'] == { assert docs['components']['securitySchemes']['bearerAuth'] == {
@ -42,4 +43,4 @@ def test_api_docs(client: Client):
'scheme': 'basic', 'scheme': 'basic',
'name': 'Authorization' 'name': 'Authorization'
} }
assert len(docs['definitions']) == 114 assert len(docs['definitions']) == 116