We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9cfe3c commit cbe5d39Copy full SHA for cbe5d39
tests/execution/test_sync.py
@@ -64,6 +64,11 @@ async def returns_a_promise_if_any_field_is_asynchronous():
64
)
65
66
def describe_graphql_sync():
67
+ def reports_errors_raised_during_schema_validation():
68
+ bad_schema = GraphQLSchema()
69
+ result = graphql_sync(schema=bad_schema, source="{ __typename }")
70
+ assert result == (None, [{"message": "Query root type must be provided."}])
71
+
72
def does_not_return_a_promise_for_syntax_errors():
73
doc = "fragment Example on Query { { { syncField }"
74
assert graphql_sync(schema, doc) == (
tests/test_graphql.py
0 commit comments