test_demo_classB.py 813 Bytes
# -*- coding: utf-8 -*-

# @Time    : 2021/7/27 17:44
# @Author  : Ljq
# @File    : test_demo_classB.py
# @Software: PyCharm

"""
测试get_carTypeClassB类
"""

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_carTypeClassB()


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()