def test_003_api_78dk_app_process_saveWorkInfo_companycity_error(self): """ 保存工作信息 :return: """ res = json.loads( AppAction.test_api_78dk_app_process_saveWorkInfo( companycity='abc', companycityname=company_city_name, companydetail=company_detail, companyname=company_name, companyprovince=company_province, companyprovincename=company_province_name, companyregion=company_region, companyregionname=company_region_name, datumtypeincomeid=datum_type_income_id, position=position, workphone=work_phone, propertiesid='74', scaleid='81', datumtypeworktimeid=datum_type_worktime_id)) Assertion.verity(res['code'], '20000')
def test_032_api_78dk_app_process_saveWorkInfo_workyear_zero(self): """ 保存工作信息 :return: """ res = json.loads( AppAction.test_api_78dk_app_process_saveWorkInfo( companycity=company_city, companycityname=company_city_name, companydetail=company_detail, companyname=company_name, companyprovince=company_province, companyprovincename=company_province_name, companyregion=company_region, companyregionname=company_region_name, datumtypeincomeid=datum_type_income_id, position=position, workphone='131000000000', propertiesid='74', scaleid='81', datumtypeworktimeid=datum_type_worktime_id)) Assertion.verity(res['code'], '20000') Assertion.verity(res['msg'], '现单位工作年限不能为0!')