demo_b.py 1.43 KB
# -*- coding: utf-8 -*-

# @Time    : 2021/8/6 17:49
# @Author  : Ljq
# @File    : test_ZCCreate.py
# @Software: PyCharm

"""
整车进门但创建测试
"""

import unittest
from commons.scripts.readConf import rC
from commons.api.entranceFeeBillList import apiDemo

from commons.MySession import mysession
session = mysession().cliLogin()

global mk_sign
mk_sign = "hb"

class test_ZCCreate(unittest.TestCase):


    """沈阳市场-整车-创建整车进门单"""
    def setUp(self) -> None:
        pass

    def tearDown(self) -> None:
        pass


    @classmethod
    def setUpClass(cls) -> None:
        cls.gatewayHost = rC.returnOptionsItems("host", "gatewayHost")
        cls.jmsfHost = rC.returnOptionsItems("host", "jmsfHost")

    @classmethod
    def tearDownClass(cls) -> None:
        pass

    def test_creZC(self):
        """整车-整车创建:按接车员名称信息查询接车员"""
        """整车-整车创建:获取车型接口调用测试"""
        # 依赖数据
        plate = "川A12323"
        productState = "1"
        trailerNumber = plate

        # 获取车型
        carType = apiDemo.get_carType(host=self.gatewayHost)
        print(carType.text)
        print(carType.json()["data"][0])

        # 获取商品
        categoryByCondition = apiDemo.get_listCategoryByCondition(host=self.gatewayHost)
        print(categoryByCondition.json())

print("mk_sign",mk_sign)
print("apiDemo.mk_sign", apiDemo.mk_sign)