Skip to content

Commit

Permalink
use yaml.BaseLoader in test to remove warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dtkav committed Dec 12, 2019
1 parent a649697 commit 154d367
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 @@ -61,7 +61,7 @@ def test_openapi_yaml_behind_proxy(reverse_proxied_app):
)
assert openapi_yaml.status_code == 200
assert openapi_yaml.headers.get('Content-Type') == 'text/yaml'
spec = yaml.load(openapi_yaml.data.decode('utf-8'))
spec = yaml.load(openapi_yaml.data.decode('utf-8'), Loader=yaml.BaseLoader)

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

0 comments on commit 154d367

Please sign in to comment.