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
def post_list(event): token = event.get('token', None) name = event.get('name', None) response = TODOABLE.post_list(token, name) return (response)