File: test_parser.py

package info (click to toggle)
graphql-core 3.2.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,384 kB
  • sloc: python: 45,812; makefile: 26; sh: 13
file content (8 lines) | stat: -rw-r--r-- 273 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
from graphql import parse, DocumentNode

from ..fixtures import kitchen_sink_query  # noqa: F401


def test_parse_kitchen_sink(benchmark, kitchen_sink_query):  # noqa: F811
    query = benchmark(lambda: parse(kitchen_sink_query))
    assert isinstance(query, DocumentNode)