Commit 2f43e893aa1361bcdbe95344c494e50575d29fbf

Authored by lixi
1 parent c35af1fd

增加邮件收件人

testcase/heb/CZFW/test_weightBizBill_listPage.py
... ... @@ -43,18 +43,18 @@ class test_weightBizBill_listPage(unittest.TestCase):
43 43 self.assertTrue("'total':1" in str(re.json()).replace(" ",""))
44 44 self.assertTrue(self.re.json()["data"]["number"] in str(re.json()).replace(" ",""))
45 45  
46   - @unittest.case_mark(my.mark())
47   - def test_weightBizBill_listPage_02(self):
48   - "称重服务单列表-查询:查询条件为“车号”,其余查询条件输入合法值,查询一条指定数据"
49   - body=bi.body.replace("attr=number","attr=plate").replace(
50   - "202108030900001","{}".format(ad.body["plate"])).replace(
51   - "2020-08-03 00:00:00","{}".format(self.time)).replace(
52   - "carTypeId=53", "carTypeId={}".format(ca.car_list()["data"][0]["id"])).replace(
53   - "depId=139", "depId={}".format(heb.user["heb_user01"]["departmentId"]))
54   - re=heb.post(url=bi.url,headers=bi.header,data=body.encode('utf-8'))
55   - print(re.json())
56   - self.assertEqual(re.status_code, 200)
57   - self.assertTrue(ad.body["plate"] in str(re.json()).replace(" ",""))
  46 + # @unittest.case_mark(my.mark())
  47 + # def test_weightBizBill_listPage_02(self):
  48 + # "称重服务单列表-查询:查询条件为“车号”,其余查询条件输入合法值,查询一条指定数据"
  49 + # body=bi.body.replace("attr=number","attr=plate").replace(
  50 + # "202108030900001","{}".format(ad.body["plate"])).replace(
  51 + # "2020-08-03 00:00:00","{}".format(self.time)).replace(
  52 + # "carTypeId=53", "carTypeId={}".format(ca.car_list()["data"][0]["id"])).replace(
  53 + # "depId=139", "depId={}".format(heb.user["heb_user01"]["departmentId"]))
  54 + # re=heb.post(url=bi.url,headers=bi.header,data=body.encode('utf-8'))
  55 + # print(re.json())
  56 + # self.assertEqual(re.status_code, 200)
  57 + # self.assertTrue(ad.body["plate"] in str(re.json()).replace(" ",""))
58 58  
59 59  
60 60 if __name__ == "__main__":
... ...