Skip to content
Snippets Groups Projects
Commit d4588830 authored by Manon Blanco's avatar Manon Blanco
Browse files

Use value attribute in tests

parent 68fb74b7
No related branches found
No related tags found
1 merge request!212Support error responses in MockApiClient
Pipeline #29342 passed
......@@ -86,7 +86,7 @@ def test_mock_client():
with pytest.raises(apistar.exceptions.ErrorResponse) as e_info:
mock.request("DeleteTag", name="Henri", body={"tag": "yyy"})
_, error_response, _ = e_info._excinfo
error_response = e_info.value
assert error_response.status_code == 403
assert error_response.title == "Forbidden"
assert error_response.content == "You cannot perform this action"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment