Change status code in tests

This commit is contained in:
Alexey Subbotin 2017-01-23 16:12:15 +01:00 committed by GitHub
parent 1f2d732775
commit 1c0a9bab45

View File

@ -406,7 +406,7 @@ def test_supports_pretty_printing_by_request(client):
def test_handles_field_errors_caught_by_graphql(client):
response = client.get(url_string(query='{thrower}'))
assert response.status_code == 200
assert response.status_code == 400
assert response_json(response) == {
'data': None,
'errors': [{'locations': [{'column': 2, 'line': 1}], 'message': 'Throws!'}]