Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
[refactor] Suppress warning by YAML library: https://msg.pyyaml.org/load
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa committed Nov 14, 2020
1 parent 80d6f2c commit d9c6953
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_extended_app.py
Expand Up @@ -127,7 +127,7 @@ def test_api_index_skip_limit_order_by(client):
query_string={"order_by": "first_name"},
headers={"Accept": "text/yaml"})
assert res.status_code == 200
data = yaml.load(res.data)
data = yaml.load(res.data, Loader=yaml.SafeLoader)
assert "users" in data
assert len(data["users"]) == 10
assert data["users"][0]["first_name"] == "1"
Expand Down

0 comments on commit d9c6953

Please sign in to comment.