We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25cf4ce commit a1f1201Copy full SHA for a1f1201
tests/benchmarks/test_validate_sdl.py
@@ -0,0 +1,11 @@
1
+from graphql import parse
2
+from graphql.validation.validate import validate_sdl
3
+
4
+# noinspection PyUnresolvedReferences
5
+from ..fixtures import big_schema_sdl # noqa: F401
6
7
8
+def test_validate_sdl_document(benchmark, big_schema_sdl): # noqa: F811
9
+ sdl_ast = parse(big_schema_sdl)
10
+ result = benchmark(lambda: validate_sdl(sdl_ast))
11
+ assert result == []
0 commit comments