updated test to match outputs

pull/914/head
sarfaraz siddiqui 2 months ago
parent 6ccd96f661
commit c4c862d365

@ -20,7 +20,7 @@ def test_bad_request_without_message(app):
with app.app_context():
response = bad_request(status_code=400)
assert response.status_code == 400
assert response.json == {'error': 'Bad Request'}
assert response.json == {'error': 'Bad Request', 'message': 'An error occurred'}
def test_response_error_with_message(app):
@ -34,4 +34,4 @@ def test_response_error_without_message(app):
with app.app_context():
response = response_error(code_status=500)
assert response.status_code == 500
assert response.json == {'error': 'Internal Server Error'}
assert response.json == {'error': 'Internal Server Error' , 'message': 'An error occurred'}
Loading…
Cancel
Save