mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-06-14 18:43:15 +03:00
Merge pull request #2 from no-dap/bugfix/execution-result
Fix invalid field error's status code
This commit is contained in:
commit
14dc656486
|
@ -444,7 +444,7 @@ def test_supports_pretty_printing_by_request(client):
|
||||||
|
|
||||||
def test_handles_field_errors_caught_by_graphql(client):
|
def test_handles_field_errors_caught_by_graphql(client):
|
||||||
response = client.get(url_string(query="{thrower}"))
|
response = client.get(url_string(query="{thrower}"))
|
||||||
assert response.status_code == 200
|
assert response.status_code == 400
|
||||||
assert response_json(response) == {
|
assert response_json(response) == {
|
||||||
"data": None,
|
"data": None,
|
||||||
"errors": [
|
"errors": [
|
||||||
|
|
Loading…
Reference in New Issue
Block a user