

def test_prints_kitchen_sink():
    ast = parse(KITCHEN_SINK)
    printed = print_ast(printed)
    assert (printed == 'query queryName($foo: ComplexType, $site: Site = MOBILE) {\n  whoever123is: node(id: [123, 456]) {\n    id\n    ... on User @defer {\n      field2 {\n        id\n        alias: field1(first: 10, after: $foo) @include(if: $foo) {\n          id\n          ...frag\n        }\n      }\n    }\n    ... @skip(unless: $foo) {\n      id\n    }\n    ... {\n      id\n    }\n  }\n}\n\nmutation likeStory {\n  like(story: 123) @defer {\n    story {\n      id\n    }\n  }\n}\n\nsubscription StoryLikeSubscription($input: StoryLikeSubscribeInput) {\n  storyLikeSubscribe(input: $input) {\n    story {\n      likers {\n        count\n      }\n      likeSentence {\n        text\n      }\n    }\n  }\n}\n\nfragment frag on Friend {\n  foo(size: $size, bar: $b, obj: {key: "value"})\n}\n\n{\n  unnamed(truthy: true, falsey: false)\n  query\n}\n')

dataset/ETHPy150Open graphql-python/graphql-core/tests/core_language/test_printer.py test_prints_kitchen_sink/VarMisuse@20/34 `ast`->`printed`