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 b88300c commit abe48f3Copy full SHA for abe48f3
tests/benchmarks/test_build_ast_schema.py
@@ -0,0 +1,12 @@
1
+from graphql import parse, build_ast_schema, GraphQLSchema
2
+
3
+# noinspection PyUnresolvedReferences
4
+from ..fixtures import big_schema_sdl # noqa: F401
5
6
7
+def test_building_ast_of_big_schema(benchmark, big_schema_sdl): # noqa: F811
8
+ schema_ast = parse(big_schema_sdl)
9
+ schema: GraphQLSchema = benchmark(
10
+ lambda: build_ast_schema(schema_ast, assume_valid=True)
11
+ )
12
+ assert schema.query_type is not None
0 commit comments