def test_resolver_include_resolver():
    app = AppSyncResolver()
    router = Router()

    @router.resolver(type_name='Query', field_name='listLocations')
    def get_locations(name: str):
        return ('get_locations#' + name)

    @app.resolver(field_name='listLocations2')
    def get_locations2(name: str):
        return ('get_locations2#' + name)
    app.include_router(router)
    mock_event1 = {'typeName': 'Query', 'fieldName': 'listLocations', 'arguments': {'name': 'value'}}
    mock_event2 = {'typeName': 'Query', 'fieldName': 'listLocations2', 'arguments': {'name': 'value'}}
    result1 = app.resolve(mock_event1, LambdaContext())
    result2 = app.resolve(mock_event2, LambdaContext())
    assert (result1 == 'get_locations#value')
    assert (result2 == 'get_locations2#value')
def test_resolver_include_resolver():
    app = AppSyncResolver()
    router = Router()

    @router.resolver(type_name='Query', field_name='listLocations')
    def get_locations(name: str):
        return ('get_locations#' + name)

    @app.resolver(field_name='listLocations2')
    def get_locations2(name: str):
        return ('get_locations2#' + name)
    app.include_router(router)
    mock_event1 = {'typeName': 'Query', 'fieldName': 'listLocations', 'arguments': {'name': 'value'}}
    mock_event2 = {'typeName': 'Query', 'fieldName': 'listLocations2', 'arguments': {'name': 'value'}}
    result1 = app.resolve(mock_event1, LambdaContext())
    result2 = app.resolve(mock_event2, LambdaContext())
    assert (result1 == 'get_locations#value')
    assert (result2 == 'get_locations2#value')