Cleanup introspection test
-
from graphql import graphql
from graphql.utils.introspection_query import introspection_query
@@ -14,11 +13,14 @@ type_defs = """
type User {
name: String
age: Int!
+ dateOfBirth: Date!
}
+
+ scalar Date
"""
-def test_schema_introspection_query_has_no_errors():
+def test_introspect_executable_schema():
schema = make_executable_schema(type_defs, {})
result = graphql(schema, introspection_query)
assert result.errors is None
