feedbackOrderController_querySumAmount.py
1.19 KB
import unittest
import urllib3
from commons.MySession import heb
from commons.api.feedbackOrderController_querySumAmount import querySumAmount
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
import datetime
qsa = querySumAmount()
"""
进门收费——返点管理——已结账明细——已结账笔数已结账金额查询
"""
@unittest.skip
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", (datetime.datetime.now() - datetime.timedelta(days = 30)).strftime("%Y-%m-%d %H:%M:%S")).\
replace("2021-08-05 09:46:25", datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"))
re = heb.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()