Skip to content

Commit a1e33ab

Browse files
committed
fixup! Fix GraphQLView tests, skip some of them
1 parent 43ceb87 commit a1e33ab

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

graphene_django/tests/test_views.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ def test_allows_get_with_operation_name(client):
9393

9494

9595
@pytest.mark.xfail(
96-
reason="SourceLocation serialization problem: https://github.com/graphql-python/graphql-core-next/issues/61")
96+
reason="SourceLocation serialization problem: https://github.com/graphql-python/graphql-core-next/issues/61"
97+
)
9798
def test_reports_validation_errors(client):
9899
response = client.get(url_string(query="{ test, unknownOne, unknownTwo }"))
99100

@@ -103,12 +104,12 @@ def test_reports_validation_errors(client):
103104
{
104105
"message": "Cannot query field 'unknownOne' on type 'QueryRoot'.",
105106
"locations": [{"line": 1, "column": 9}],
106-
"path": None
107+
"path": None,
107108
},
108109
{
109110
"message": "Cannot query field 'unknownTwo' on type 'QueryRoot'.",
110111
"locations": [{"line": 1, "column": 21}],
111-
"path": None
112+
"path": None,
112113
},
113114
]
114115
}
@@ -449,7 +450,8 @@ def test_supports_pretty_printing_by_request(client):
449450

450451

451452
@pytest.mark.xfail(
452-
reason="SourceLocation serialization problem: https://github.com/graphql-python/graphql-core-next/issues/61")
453+
reason="SourceLocation serialization problem: https://github.com/graphql-python/graphql-core-next/issues/61"
454+
)
453455
def test_handles_field_errors_caught_by_graphql(client):
454456
response = client.get(url_string(query="{thrower}"))
455457
assert response.status_code == 200
@@ -466,7 +468,8 @@ def test_handles_field_errors_caught_by_graphql(client):
466468

467469

468470
@pytest.mark.xfail(
469-
reason="SourceLocation serialization problem: https://github.com/graphql-python/graphql-core-next/issues/61")
471+
reason="SourceLocation serialization problem: https://github.com/graphql-python/graphql-core-next/issues/61"
472+
)
470473
def test_handles_syntax_errors_caught_by_graphql(client):
471474
response = client.get(url_string(query="syntaxerror"))
472475
assert response.status_code == 400

0 commit comments

Comments
 (0)