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
def login(event): user = event.get('username', None) pwd = event.get('password', None) response = TODOABLE.login(user, pwd) return (response)