def test_user_profile_setname_2(): reset_users() user_dict1 = auth_register("*****@*****.**", "password", "firstname", "lastname") u_token = user_dict1['token'] with pytest.raises(ValueError): user_profile_setname(u_token, 'John', 51 * 'A')
def test_user_profile_setname_6(): reset_users() user_dict1 = auth_register("*****@*****.**", "password", "firstname", "lastname") u_token = user_dict1['token'] u_id = user_dict1['u_id'] user_profile_setname(u_token, 'Hayden', 49 * 'A') assert (user_profile(u_token, u_id) == { 'email': '*****@*****.**', 'name_first': 'Hayden', 'name_last': 49 * 'A', 'handle_str': 'firstnamelastname' })
def test_user_profile_setname_10(): reset_users() user_dict1 = auth_register("*****@*****.**", "password", "firstname", "lastname") u_token = user_dict1['token'] u_id = user_dict1['u_id'] user_profile_setname(u_token, 'John', 'Smith!@#$%^&*()') assert (user_profile(u_token, u_id) == { 'email': '*****@*****.**', 'name_first': 'John', 'name_last': 'Smith!@#$%^&*()', 'handle_str': 'firstnamelastname' })