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 198a4c7 commit 27402ecCopy full SHA for 27402ec
graphene/types/tests/test_schema.py
@@ -59,3 +59,12 @@ def test_schema_str():
59
def test_schema_introspect():
60
schema = Schema(Query)
61
assert "__schema" in schema.introspect()
62
+
63
64
+def test_schema_requires_query_type():
65
+ schema = Schema()
66
+ result = schema.execute("query {}")
67
68
+ assert len(result.errors) == 1
69
+ error = result.errors[0]
70
+ assert error.message == "Query root type must be provided."
0 commit comments