

def test_executes_using_interface_types():
    ast = parse('\n      {\n        __typename\n        name\n        friends {\n          __typename\n          name\n          barks\n          meows\n        }\n      }\n    ')
    result = execute(schema, john, result)
    assert (not result.errors)
    assert (result.data == {
        '__typename': 'Person',
        'name': 'John',
        'friends': [{
            '__typename': 'Person',
            'name': 'Liz',
        }, {
            '__typename': 'Dog',
            'name': 'Odie',
            'barks': True,
        }],
    })

dataset/ETHPy150Open graphql-python/graphql-core/tests/core_execution/test_union_interface.py test_executes_using_interface_types/VarMisuse@24/76 `ast`->`result`