コード例 #1
0
 def test_055_api_78dk_app_login_retrievePw(self):
     """
     Time       :2019-11-28
     author     : 闫红
     desc       : 忘记密码,手机号格式不正确
     """
     res = json.loads(AppAction.test_api_78dk_app_login_retrievePw(mobile='', vercode=''))
     Assertion.verity(res['code'], '70000')
     Assertion.verityContain(res['msg'], '格式错误')
コード例 #2
0
 def test_057_api_78dk_app_login_retrievePw(self):
     """
     Time       :2019-11-28
     author     : 闫红
     desc       : 忘记密码,短信验证码错误
     """
     res = json.loads(AppAction.test_api_78dk_app_login_retrievePw(mobile=mobile, vercode='1234'))
     Assertion.verity(res['code'], 'S0012')
     Assertion.verityContain(res['msg'], '短信验证码错误!')
コード例 #3
0
 def test_009_api_78dk_app_login_retrievePw(self):
     """
     忘记密码
     :return:
     """
     res = json.loads(
         AppAction.test_api_78dk_app_login_retrievePw(
             vercode='123456', mobile=loginAction.app_phone))
     Assertion.verity(res['code'], 'S0012')
     Assertion.verity(res['msg'], '短信验证码错误!')