Example #1
0
def test_post_task_in_list(todoable_keys):
    """
    Test API Call for post_task_in_list
    """

    token = todoable_keys.get('token')
    list_id = todoable_keys.get('list_id')
    name = todoable_keys.get('add_task_name')
    response = TODOABLE.post_task_in_list(token, list_id, name)

    assert isinstance(response, dict)
    assert response.get('name') != None
Example #2
0
def post_task_in_list(event):
    token = event.get('token', None)
    list_id = event.get('list_id', None)
    name = event.get('name', None)
    response = TODOABLE.post_task_in_list(token, list_id, name)
    return (response)