def test_resolver_multiple_mappings():
    app = AppSyncResolver()

    @app.resolver(field_name='listLocations')
    @app.resolver(field_name='locations')
    def get_locations(name: str, description: str=''):
        return (name + description)
    mock_event1 = {'typeName': 'Query', 'fieldName': 'listLocations', 'arguments': {'name': 'value'}}
    mock_event2 = {'typeName': 'Merchant', 'fieldName': 'locations', 'arguments': {'name': 'value2', 'description': 'description'}}
    result1 = app.resolve(mock_event1, LambdaContext())
    result2 = app.resolve(mock_event2, LambdaContext())
    assert (result1 == 'value')
    assert (result2 == 'value2description')
def test_resolver_multiple_mappings():
    app = AppSyncResolver()

    @app.resolver(field_name='listLocations')
    @app.resolver(field_name='locations')
    def get_locations(name: str, description: str=):
        return (name + description)
    mock_event1 = {'typeName': 'Query', 'fieldName': 'listLocations', 'arguments': {'name': 'value'}}
    mock_event2 = {'typeName': 'Merchant', 'fieldName': 'locations', 'arguments': {'name': 'value2', 'description': 'description'}}
    result1 = app.resolve(mock_event1, LambdaContext())
    result2 = app.resolve(mock_event2, LambdaContext())
    assert (result1 == 'value')
    assert (result2 == 'value2description')