Ejemplo n.º 1
0
def test_post_list(todoable_keys):
    """
    Test API Call for post_list
    """

    token = todoable_keys.get('token')
    name = todoable_keys.get('add_list_name')
    response = TODOABLE.post_list(token, name)

    assert isinstance(response, dict)
    assert response.get('name') != None
Ejemplo n.º 2
0
def post_list(event):
    token = event.get('token', None)
    name = event.get('name', None)
    response = TODOABLE.post_list(token, name)
    return (response)