Skip to content

Commit cbe5d39

Browse files
committed
Unite tests for graphql_sync in one place
Replicates graphql/graphql-js@be654b5
1 parent e9cfe3c commit cbe5d39

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

tests/execution/test_sync.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ async def returns_a_promise_if_any_field_is_asynchronous():
6464
)
6565

6666
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+
6772
def does_not_return_a_promise_for_syntax_errors():
6873
doc = "fragment Example on Query { { { syncField }"
6974
assert graphql_sync(schema, doc) == (

tests/test_graphql.py

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)