

def test_can_introspect_on_union_and_intersection_types():
    ast = parse('\n    {\n        Named: __type(name: "Named") {\n            kind\n            name\n            fields { name }\n            interfaces { name }\n            possibleTypes { name }\n            enumValues { name }\n            inputFields { name }\n        }\n        Pet: __type(name: "Pet") {\n            kind\n            name\n            fields { name }\n            interfaces { name }\n            possibleTypes { name }\n            enumValues { name }\n            inputFields { name }\n        }\n    }')
    result = execute(schema, None, result)
    assert (result.data == {
        'Named': {
            'enumValues': None,
            'name': 'Named',
            'kind': 'INTERFACE',
            'interfaces': None,
            'fields': [{
                'name': 'name',
            }],
            'possibleTypes': [{
                'name': 'Dog',
            }, {
                'name': 'Cat',
            }, {
                'name': 'Person',
            }],
            'inputFields': None,
        },
        'Pet': {
            'enumValues': None,
            'name': 'Pet',
            'kind': 'UNION',
            'interfaces': None,
            'fields': None,
            'possibleTypes': [{
                'name': 'Dog',
            }, {
                'name': 'Cat',
            }],
            'inputFields': None,
        },
    })

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