| 1 |
from graphql import parse, print_ast |
| 2 |
|
| 3 |
from ..fixtures import kitchen_sink_query # noqa: F401 |
| 4 |
|
| 5 |
|
| 6 |
def test_print_kitchen_sink(benchmark, kitchen_sink_query): # noqa: F811 |
| 7 |
document = parse(kitchen_sink_query) |
| 8 |
result = benchmark(lambda: print_ast(document)) |
| 9 |
assert isinstance(result, str) |