def test_resolver_no_params():
    app = AppSyncResolver()

    @app.resolver(type_name='Query', field_name='noParams')
    def no_params():
        return 'no_params has no params'
    event = {'typeName': 'Query', 'fieldName': 'noParams', 'arguments': {}}
    result = app.resolve(event, LambdaContext())
    assert (result == 'no_params has no params')
def test_resolver_no_params():
    app = AppSyncResolver()

    @app.resolver(type_name='Query', field_name='noParams')
    def no_params():
        return 'no_params has no params'
    event = {'typeName': 'Query', 'fieldName': 'noParams', 'arguments': {}}
    result = app.resolve(event, LambdaContext())
    assert (result == 'no_params has no params')