def test_060_api_78dk_app_login_newPw(self): """ Time :2019-11-28 author : 闫红 desc : 忘记密码(设置新密码),密码为123456 """ res = json.loads(AppAction.test_api_78dk_app_login_newPw(mobile='', password='******')) Assertion.verity(res['code'], 'S0006') Assertion.verity(res['msg'], '新密码和旧密码一致!')
def test_059_api_78dk_app_login_newPw(self): """ Time :2019-11-28 author : 闫红 desc : 忘记密码(设置新密码),用户不存在 """ res = json.loads(AppAction.test_api_78dk_app_login_newPw(mobile=mobile, password='******')) Assertion.verity(res['code'], '90000') Assertion.verityContain(res['msg'], '用户不存在')
def test_011_api_78dk_app_login_newPw_one(self): """ 忘记密码(设置新密码) :return: """ res = json.loads( AppAction.test_api_78dk_app_login_newPw( password='******', mobile=loginAction.app_phone)) Assertion.verity(res['code'], 'S0006')
def test_058_api_78dk_app_login_newPw(self): """ Time :2019-11-28 author : 闫红 desc : 忘记密码(设置新密码),密码格式不正确 """ res = json.loads(AppAction.test_api_78dk_app_login_newPw(mobile=mobile, password='')) Assertion.verity(res['code'], '70000') Assertion.verityContain(res['msg'], '密码为6位数字')
def test_010_api_78dk_app_login_newPw_new_old(self): """ 忘记密码(设置新密码) :return: """ res = json.loads( AppAction.test_api_78dk_app_login_newPw( password=loginAction.app_passwd, mobile=loginAction.app_phone)) Assertion.verity(res['code'], 'S0006') Assertion.verity(res['msg'], '新密码和旧密码一致!')