

def test_only_include_fields_from_matching_fragment_condition():
    ast = parse('\n      {\n        pets { ...PetFields }\n      }\n      fragment PetFields on Pet {\n        __typename\n        ... on Dog {\n          name\n        }\n      }\n    ')
    result = execute(schema, john, result)
    assert (not result.errors)
    assert (result.data == {
        'pets': [{
            '__typename': 'Cat',
        }, {
            '__typename': 'Dog',
            'name': 'Odie',
        }],
    })

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