def test_complete_task_in_list(todoable_keys): """ Test API Call for test_complete_task_in_list """ token = todoable_keys.get('token') list_id = todoable_keys.get('list_id') item_id = todoable_keys.get('item_id') response = TODOABLE.complete_task_in_list(token, list_id, item_id) assert isinstance(response, str) assert response == 'marked finished'
def complete_task_in_list(event): token = event.get('token', None) list_id = event.get('list_id', None) item_id = event.get('item_id', None) response = TODOABLE.complete_task_in_list(token, list_id, item_id) return (response)