def setUpClass(cls):
        basepath = os.path.split(os.path.dirname(__file__))[1]
        cls.basename = os.path.splitext(os.path.basename(__file__))[0]
        cls.basename = basepath + "-" + cls.basename
        config = MovementUser.add_key(MovementUser.customer, MovementUser.select)
        cls.sJude = ScreeningJude(config, cls.basename, Consumers)

        if "\\" in os.path.dirname(__file__):
            cls.method_path = os.path.dirname(__file__).split('\\', 2)[-1]
        elif "/" in os.path.dirname(__file__):
            cls.method_path = os.path.dirname(__file__).split('/', 2)[-1]
        pass
    def setUpClass(cls):
        basepath = os.path.split(os.path.dirname(__file__))[1]
        basename = os.path.splitext(os.path.basename(__file__))[0]
        cls.basename = basepath + "-" + basename
        config = Commodities.add_key(Commodities.storesold, Commodities.select)
        cls.screen = ScreeningJude(config, cls.basename, BundledItems)

        if "\\" in os.path.dirname(__file__):
            cls.method_path = os.path.dirname(__file__).split('\\', 2)[-1]
        elif "/" in os.path.dirname(__file__):
            cls.method_path = os.path.dirname(__file__).split('/', 2)[-1]
        pass
    def setUpClass(cls):
        basepath = os.path.split(os.path.dirname(__file__))[1]
        cls.basename = os.path.splitext(os.path.basename(__file__))[0]
        cls.basename = basepath + "-" + cls.basename
        config = McroLetter.add_key(McroLetter.consult, McroLetter.select)
        cls.c_screen = ScreeningJude(config, cls.basename, McroLetterWechat)

        if "\\" in os.path.dirname(__file__):
            cls.method_path = os.path.dirname(__file__).split('\\', 2)[-1]
        elif "/" in os.path.dirname(__file__):
            cls.method_path = os.path.dirname(__file__).split('/', 2)[-1]
        pass
Example #4
0
    def setUpClass(cls):
        basepath = os.path.split(os.path.dirname(__file__))[1]
        cls.basename = os.path.splitext(os.path.basename(__file__))[0]
        cls.basename = basepath + "-" + cls.basename
        # I pass in the key of the subset, and the sheet name in the Excel document
        config = GeneralizeAssist.add_key(GeneralizeAssist.entrance, GeneralizeAssist.select)

        cls.e_screen = ScreeningJude(config, cls.basename, Generalize)

        if "\\" in os.path.dirname(__file__):
            cls.method_path = os.path.dirname(__file__).split('\\', 2)[-1]
        elif "/" in os.path.dirname(__file__):
            cls.method_path = os.path.dirname(__file__).split('/', 2)[-1]
Example #5
0
    def setUpClass(cls):
        basepath = os.path.split(os.path.dirname(__file__))[1]
        cls.basename = os.path.splitext(os.path.basename(__file__))[0]
        cls.basename = basepath + "-" + cls.basename
        config = SystemSetting.add_key(SystemSetting.notice, SystemSetting.select)

        cls.n_Verity = ScreeningJude(config, cls.basename, SystemParameter)

        if "\\" in os.path.dirname(__file__):
            cls.method_path = os.path.dirname(__file__).split('\\', 2)[-1]
        elif "/" in os.path.dirname(__file__):
            cls.method_path = os.path.dirname(__file__).split('/', 2)[-1]
        pass
    def setUpClass(cls):
        basepath = os.path.split(os.path.dirname(__file__))[1]
        cls.basename = os.path.splitext(os.path.basename(__file__))[0]
        cls.basename = basepath + "-" + cls.basename

        # 传入子集的key,以及Excel文档中的sheet名字
        config = GoodsManagement.add_key(GoodsManagement.emptybarrel, GoodsManagement.select)
        cls.empty_screen = ScreeningJude(config, cls.basename, CityGoodsPage)

        if "\\" in os.path.dirname(__file__):
            cls.method_path = os.path.dirname(__file__).split('\\', 2)[-1]
        elif "/" in os.path.dirname(__file__):
            cls.method_path = os.path.dirname(__file__).split('/', 2)[-1]
        pass
    def setUpClass(cls):
        basepath = os.path.split(os.path.dirname(__file__))[1]
        cls.basename = os.path.splitext(os.path.basename(__file__))[0]
        cls.basename = basepath + "-" + cls.basename
        # 读取配置文件, 传入子集的key,以及Excel文档中的sheet名字
        config = FinancialAffairs.add_key(FinancialAffairs.balance,
                                          FinancialAffairs.select)

        cls.bala_screen = ScreeningJude(config, cls.basename, Financial)

        if "\\" in os.path.dirname(__file__):
            cls.method_path = os.path.dirname(__file__).split('\\', 2)[-1]
        elif "/" in os.path.dirname(__file__):
            cls.method_path = os.path.dirname(__file__).split('/', 2)[-1]
        pass
    def setUpClass(cls):
        # 读取包名
        basedir = os.path.split(os.path.dirname(__file__))[1]
        # 读取文件名
        cls.basename = os.path.splitext(os.path.basename(__file__))[0]
        cls.basename = basedir + "-" + cls.basename

        # 读取配置所在文件
        config = Commodities.add_key(Commodities.store, Commodities.select)
        cls.sJude = ScreeningJude(config, cls.basename, BundledItems)

        if "\\" in os.path.dirname(__file__):
            cls.method_path = os.path.dirname(__file__).split('\\', 2)[-1]
        elif "/" in os.path.dirname(__file__):
            cls.method_path = os.path.dirname(__file__).split('/', 2)[-1]
        pass
    def setUpClass(cls):
        basepath = os.path.split(os.path.dirname(__file__))[1]
        cls.basename = os.path.splitext(os.path.basename(__file__))[0]
        cls.basename = basepath + "-" + cls.basename

        # 传入子集的key,以及Excel文档中的sheet名字
        config = GeneralizeAssist.add_key(GeneralizeAssist.relation, GeneralizeAssist.select)

        cls.r_screen = ScreeningJude(config, cls.basename, Generalize)
        cls.INVITE_DESIGNATED_TABS = cls.r_screen.bi.yaml_tabs()

        if "\\" in os.path.dirname(__file__):
            cls.method_path = os.path.dirname(__file__).split('\\', 2)[-1]
        elif "/" in os.path.dirname(__file__):
            cls.method_path = os.path.dirname(__file__).split('/', 2)[-1]
        pass
Example #10
0
    def setUpClass(cls):
        try:
            basepath = os.path.split(os.path.dirname(__file__))[1]
            basename = os.path.splitext(os.path.basename(__file__))[0]
            cls.basename = basepath + "-" + basename
            config = Commodities.add_key(Commodities.platform,
                                         Commodities.select)
            cls.sJude = ScreeningJude(config, cls.basename, BundledItems)

            # 获取执行文件路径
            if "\\" in os.path.dirname(__file__):
                cls.method_path = os.path.dirname(__file__).split('\\', 2)[-1]
            elif "/" in os.path.dirname(__file__):
                cls.method_path = os.path.dirname(__file__).split('/', 2)[-1]

        except TypeError as TE:
            print(TE)
            print("又出现下面这个问题----------------------")
            print(
                "TypeError: setUpClass() missing 1 required positional argument: 'cls'"
            )
            print("缺少-----@classmethod-------导致-------")