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

    username = todoable_keys.get('username')
    password = todoable_keys.get('password')
    response = TODOABLE.login(username, password)

    assert isinstance(response, dict)
    assert response.get('token') != None
Ejemplo n.º 2
0
def login(event):
    user = event.get('username', None)
    pwd = event.get('password', None)
    response = TODOABLE.login(user, pwd)
    return (response)