feedbackOrderController_querySumAmount.py
879 Bytes
import unittest
import urllib3
from commons.MySession import sy1
from commons.api.feedbackOrderController_querySumAmount import querySumAmount
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
qsa = querySumAmount()
class test_feedbackOrderController_querySumAmount(unittest.TestCase):
"已结账明细查询"
@classmethod
def setUpClass(cls):
pass
def setUp(self):
pass
def test_feedbackOrderController_querySumAmount_01(self):
body = qsa.body.replace("2021-07-05 00:00:00", "2021-08-03 00:00:00")\
.replace("2021-08-05 09:46:25", "2021-08-10 23:59:59")
re = sy1.post(url=qsa.url, data=body, headers=qsa.header)
self.assertEqual(re.status_code, 200)
# print(re.json())
@classmethod
def tearDownClass(cls):
pass
if __name__ == '__main__':
unittest.main()