Skip to content

Commit

Permalink
WireViz 0.3: Adjust exception response text for error path tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Oct 22, 2021
1 parent a1e0972 commit 03ddafc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def test_invalid_yaml_data(self, client):
)
assert response.status_code == 400
assert response.json == {
"message": "Unable to parse WireViz YAML format: 'str' object does not support item assignment",
"message": "Unable to parse WireViz YAML format: 'str' object has no attribute 'get'",
}


Expand Down Expand Up @@ -249,5 +249,5 @@ def test_invalid_encoded_data(self, client, imagetype):
)
assert response.status_code == 400
assert response.json == {
"message": "Unable to parse WireViz YAML format: 'str' object does not support item assignment",
"message": "Unable to parse WireViz YAML format: 'str' object has no attribute 'get'",
}

0 comments on commit 03ddafc

Please sign in to comment.