def test_014_api_78dk_app_process_saveIdCardInfo_19cardno(self): """ 保存身份证信息 :return: """ res = json.loads( AppAction.test_api_78dk_app_process_saveIdCardInfo( cardscanidcardno=fake.random_number(20), cardscanname=card_scan_name, oppositekey=opposite_key, frontkey=front_key, frontnote=front_note, oppositenote=opposite_note)) Assertion.verity(res['code'], '20000')
def test_020_api_78dk_app_process_saveIdCardInfo(self): """ 保存身份证信息 :return: """ res = json.loads( AppAction.test_api_78dk_app_process_saveIdCardInfo( cardscanidcardno=card_scan_idcard_no, cardscanname=card_scan_name, oppositekey=opposite_key, frontkey=front_key, frontnote=front_note, oppositenote=opposite_note)) Assertion.verity(res['code'], '10000')
def test_012_api_78dk_app_process_saveIdCardInfo_16cardno(self): """ 保存身份证信息 :return: """ res = json.loads( AppAction.test_api_78dk_app_process_saveIdCardInfo( cardscanidcardno='1234567890123456', cardscanname=card_scan_name, oppositekey=opposite_key, frontkey=front_key, frontnote='', oppositenote='')) Assertion.verity(res['code'], '20000') Assertion.verity(res['msg'], '身份证号不正确!')