Esempio n. 1
0
def test_delete_task_in_list(todoable_keys):
    """
    Test API Call for delete_task_in_list
    """

    token = todoable_keys.get('token')
    list_id = todoable_keys.get('list_id')
    item_id = todoable_keys.get('item_id')
    response = TODOABLE.delete_task_in_list(token, list_id, item_id)

    assert isinstance(response, str)
    assert response == 'item deleted'
Esempio n. 2
0
def delete_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.delete_task_in_list(token, list_id, item_id)
    return (response)