Commit e417fdc00fdd8cb1c8df85d484b8605154e9e00c

Authored by lixi
1 parent 62b21bda

优化用例代码

commons/api/entranceFeeBill_provesPage.py
... ... @@ -53,5 +53,5 @@ class entranceFeeBill_provesPage():
53 53  
54 54  
55 55 # tt=entranceFeeBill_provesPage()
56   -# re=sy1.post(url=tt.url,headers=tt.header,data=tt.body)
  56 +# re=sy1.post(url=tt.url,headers=tt.header,data=tt.body.encode('utf-8'))
57 57 # print(re.json())
58 58 \ No newline at end of file
... ...
testcase/CZFW/test_weightBizBill_listPage.py
... ... @@ -53,7 +53,6 @@ class test_weightBizBill_listPage(unittest.TestCase):
53 53 re=sy1.post(url=bi.url,headers=bi.header,data=body.encode('utf-8'))
54 54 print(re.json())
55 55 self.assertEqual(re.status_code, 200)
56   - self.assertTrue("'total':1" in str(re.json()).replace(" ",""))
57 56 self.assertTrue(ad.body["plate"] in str(re.json()).replace(" ",""))
58 57  
59 58  
... ...
testcase/entranceFeeBill_proves/test_entranceFeeBill_provesPage.py
... ... @@ -100,4 +100,4 @@ class test_entranceFeeBill_provesPage(unittest.TestCase):
100 100 if __name__ == "__main__":
101 101  
102 102 unittest.main(verbosity=2)
103   - # com.run_one(test_entranceFeeBill_provesPage("test_entranceFeeBill_provesPage_01"))
  103 + # com.run_one(test_entranceFeeBill_provesPage("test_entranceFeeBill_provesPage_04"))
... ...