Exemplo n.º 1
0
    def setUpClass(cls, instance: EditorBaseKeyword):
        if not (issubclass(type(instance), EditorBaseKeyword)
                or issubclass(type(instance), AbstractKeyword)):
            raise ValueError(
                f'expecting subclass of `EditorBaseKeyword` or `AbstractKeyword`'
            )

        cls.state = State(instance.build_config, instance.build_config.version,
                          [], [])
        cls.Init = InitCommand(instance.build_config)
        cls.Init.create_state_directory()
        cls.state.write()

        cls.keyword = instance

        _type = type(cls.keyword)
        if (issubclass(_type, AbstractKeyword)
                and not issubclass(_type, EditorBaseKeyword)):
            cls.correct_attr = (True, False
                                )  # 0: regular keyword, 1: editorkeyword
        else:
            cls.correct_attr = (False, True)

        cls.generic_check_available_candidates()
        cls.generic_check_links()
 def setUpClass(cls):
     cls.state = State(DEBUG_BUILD_CONFIG, DEBUG_BUILD_CONFIG.version, [],
                       [])
     cls.custom = CustomCommand(DEBUG_BUILD_CONFIG)
     cls.init = InitCommand(DEBUG_BUILD_CONFIG)
     cls.init.create_state_directory()
     cls.state.write()
Exemplo n.º 3
0
    def setUpClass(cls):
        cls.state = State(DEBUG_BUILD_CONFIG, DEBUG_BUILD_CONFIG.version, [],
                          [])
        cls.another = State(DEBUG_BUILD_CONFIG, DEBUG_BUILD_CONFIG.version,
                            ["__packages__"], ["__editor__"])

        cls.Init = InitCommand(DEBUG_BUILD_CONFIG)
        cls.Init.create_state_directory()

        cls.state.write()
Exemplo n.º 4
0
 def setUpClass(cls):
     cls.init = InitCommand(DEBUG_BUILD_CONFIG)
     cls.init.create_state_directory()
Exemplo n.º 5
0
 def setUpClass(cls):
     cls.init = InitCommand(DEBUG_BUILD_CONFIG)
Exemplo n.º 6
0
 def setUpClass(cls):
     init = InitCommand(DEBUG_BUILD_CONFIG)
     init.create_state_directory()
     cls.installed_command = InstalledCommand(DEBUG_BUILD_CONFIG)
     cls.installed_packages = ["tmux"]