def test_resolver_yield():
    app = AppSyncResolver()
    mock_event = {'typeName': 'Customer', 'fieldName': 'field', 'arguments': {}}

    @app.resolver(field_name='field')
    def func_yield():
        (yield 'value')
    mock_context = LambdaContext()
    result = app.resolve(mock_event, mock_context)
    assert (next(result) == 'value')
def test_resolver_yield():
    app = AppSyncResolver()
    mock_event = {'typeName': 'Customer', 'fieldName': 'field', 'arguments': {}}

    @app.resolver(field_name='field')
    def func_yield():
        (yield 'value')
    mock_context = LambdaContext()
    result = app.resolve(mock_event, mock_context)
    assert (next(result) == 'value')