test_demo_class.py 855 Bytes
# -*- 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()