mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-16 19:22:23 +03:00
Fix invalid field error's status code
This commit is contained in:
parent
11338b0f65
commit
8384347170
|
@ -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