test_demo_class.py
855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# -*- coding: utf-8 -*-
# @Time : 2021/7/27 17:33
# @Author : Ljq
# @File : test_demo_class.py
# @Software: PyCharm
"""
测试get_carTypeClass
"""
import json
import unittest
from commons.scripts.readConf import rC
from commons.MySession import my
from commons.api import addJmsfDemo as aJ
gCTC = aJ.get_carTypeClass(host=rC.returnOptionsItems("host","gatewayHost"))
class test_demo(unittest.TestCase):
def setUp(self) -> None:
pass
def tearDown(self) -> None:
pass
@classmethod
def setUpClass(cls) -> None:
pass
@classmethod
def tearDownClass(cls) -> None:
pass
def test_check_class(self):
res = my.useHeadersRequests(method=gCTC.method,url=gCTC.url,headers=gCTC.headers,data=json.dumps(gCTC.data))
print(res.text)
if __name__ == "__main__":
unittest.main()