Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Sagnard committed Dec 18, 2018
1 parent cd13b5d commit 606e137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/api/test_responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def test_openapi_json_behind_proxy(simple_app):
swagger_json = app_client.get('/v1.0/' + simple_app._spec_file.replace('.yaml', '.json'), headers=headers)
assert swagger_json.status_code == 200
assert swagger_json.headers.get('Content-Type') == 'application/json'
json_ = swagger_json.json
json_ = json.loads(swagger_json.data.decode('utf-8'))

if simple_app._spec_file == 'openapi.yaml':
assert b'url: "/behind/proxy/v1.0/openapi.json"' in swagger_ui.data
Expand Down

0 comments on commit 606e137

Please sign in to comment.