Simple test the case of a problematic json

This commit is contained in:
Rafael Caricio
2016-04-08 14:39:06 +02:00
parent c30bdbb324
commit e73a2194d3
3 changed files with 18 additions and 0 deletions

View File

@@ -56,3 +56,7 @@ def test_errors(problem_app):
assert error_problem2['detail'] == 'Something went wrong somewhere'
assert error_problem2['status'] == 418
assert error_problem2['instance'] == 'instance1'
problematic_json = app_client.get(
'/v1.0/json_response_with_undefined_value_to_serialize') # type: flask.Response
assert problematic_json.status_code == 500