def test_delete_list(todoable_keys): """ Test API Call for delete_list """ token = todoable_keys.get('token') list_id = todoable_keys.get('list_id') response = TODOABLE.delete_list(token, list_id) assert isinstance(response, str) assert response == 'list deleted'
def delete_list(event): token = event.get('token', None) list_id = event.get('list_id', None) response = TODOABLE.delete_list(token, list_id) return (response)