def test_update_list(todoable_keys): """ Test API Call for update_list """ token = todoable_keys.get('token') list_id = todoable_keys.get('list_id') name = todoable_keys.get('update_list_name') response = TODOABLE.update_list(token, list_id, name) assert isinstance(response, str) assert response == 'list updated'
def update_list(event): token = event.get('token', None) list_id = event.get('list_id', None) name = event.get('name', None) response = TODOABLE.update_list(token, list_id, name) return (response)