How to use the cliboa.conf.env.BASE_DIR function in cliboa

To help you get started, we’ve selected a few cliboa examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github BrainPad / cliboa / tests / scenario / test_validator.py View on Github external
def setup_method(self, method):
        self.__db_dir = os.path.join(env.BASE_DIR, "db")
github BrainPad / cliboa / tests / scenario / extract / test_http.py View on Github external
def setup_method(self, method):
        self._data_dir = os.path.join(env.BASE_DIR, "data")
github BrainPad / cliboa / tests / test_client.py View on Github external
def setup_method(self, method):
        sys.argv.clear()
        sys.argv.append("spam")
        sys.argv.append("spam")
        cmd_parser = CommandArgumentParser()
        self._cmd_args = cmd_parser.parse()
        self._pj_dir = os.path.join(env.BASE_DIR, "project", "spam")
        self._scenario_file = os.path.join(self._pj_dir, "scenario.yml")
github BrainPad / cliboa / tests / scenario / extract / test_ftp.py View on Github external
def setup_method(self, method):
        self._data_dir = os.path.join(env.BASE_DIR, "data")
github BrainPad / cliboa / tests / util / test_lisboa_log.py View on Github external
def setup_method(self, method):
        CommandArgumentParser()
        sys.argv.clear()
        sys.argv.append("hoge")
        sys.argv.append("hoge")
        self._log_file = os.path.join(env.BASE_DIR, "logs", "app.log")
github BrainPad / cliboa / tests / core / test_validator.py View on Github external
def setup_method(self, method):
        CommandArgumentParser()
        sys.argv.clear()
        sys.argv.append("spam")
        sys.argv.append("spam")
        self._pj_dir = os.path.join(env.BASE_DIR, "project", "spam")
        self._scenario_file = os.path.join(
            env.BASE_DIR, "project", "spam", "scenario.yml"
        )
github BrainPad / cliboa / tests / scenario / load / test_file.py View on Github external
def setup_method(self, method):
        self._data_dir = os.path.join(env.BASE_DIR, "data")
github BrainPad / cliboa / tests / scenario / extract / test_sqlite.py View on Github external
def setup_method(self, method):
        self._db_dir = os.path.join(env.BASE_DIR, "db")
github BrainPad / cliboa / tests / scenario / extract / test_sftp.py View on Github external
def setup_method(self, method):
        self._data_dir = os.path.join(env.BASE_DIR, "data")
github BrainPad / cliboa / cliboa / scenario / base.py View on Github external
def trigger(self, *args):
        mask = None
        path = os.path.join(env.BASE_DIR, "conf", "cliboa.ini")
        if os.path.exists(path):
            try:
                conf = configparser.ConfigParser()
                conf.read(path, encoding="utf-8")
                mask = conf.get("logging", "mask")
                pattern = re.compile(mask)
            except Exception as e:
                self._logger.warning(e)

        for k, v in self.__dict__.items():
            if mask is not None and pattern.search(k):
                self._logger.info("%s : ****" % k)
            else:
                self._logger.info("%s : %s" % (k, v))
        try:
            return self.execute(args)