@@ -92,19 +92,24 @@ def test_allows_get_with_operation_name(client):
92
92
}
93
93
94
94
95
+ @pytest .mark .xfail (
96
+ reason = "SourceLocation serialization problem: https://github.com/graphql-python/graphql-core-next/issues/61"
97
+ )
95
98
def test_reports_validation_errors (client ):
96
99
response = client .get (url_string (query = "{ test, unknownOne, unknownTwo }" ))
97
100
98
101
assert response .status_code == 400
99
102
assert response_json (response ) == {
100
103
"errors" : [
101
104
{
102
- "message" : ' Cannot query field " unknownOne" on type " QueryRoot".' ,
105
+ "message" : " Cannot query field ' unknownOne' on type ' QueryRoot'." ,
103
106
"locations" : [{"line" : 1 , "column" : 9 }],
107
+ "path" : None ,
104
108
},
105
109
{
106
- "message" : ' Cannot query field " unknownTwo" on type " QueryRoot".' ,
110
+ "message" : " Cannot query field ' unknownTwo' on type ' QueryRoot'." ,
107
111
"locations" : [{"line" : 1 , "column" : 21 }],
112
+ "path" : None ,
108
113
},
109
114
]
110
115
}
@@ -124,7 +129,9 @@ def test_errors_when_missing_operation_name(client):
124
129
assert response_json (response ) == {
125
130
"errors" : [
126
131
{
127
- "message" : "Must provide operation name if query contains multiple operations."
132
+ "locations" : None ,
133
+ "message" : "Must provide operation name if query contains multiple operations." ,
134
+ "path" : None ,
128
135
}
129
136
]
130
137
}
@@ -442,6 +449,9 @@ def test_supports_pretty_printing_by_request(client):
442
449
)
443
450
444
451
452
+ @pytest .mark .xfail (
453
+ reason = "SourceLocation serialization problem: https://github.com/graphql-python/graphql-core-next/issues/61"
454
+ )
445
455
def test_handles_field_errors_caught_by_graphql (client ):
446
456
response = client .get (url_string (query = "{thrower}" ))
447
457
assert response .status_code == 200
@@ -457,6 +467,9 @@ def test_handles_field_errors_caught_by_graphql(client):
457
467
}
458
468
459
469
470
+ @pytest .mark .xfail (
471
+ reason = "SourceLocation serialization problem: https://github.com/graphql-python/graphql-core-next/issues/61"
472
+ )
460
473
def test_handles_syntax_errors_caught_by_graphql (client ):
461
474
response = client .get (url_string (query = "syntaxerror" ))
462
475
assert response .status_code == 400
0 commit comments