Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def setup_method(self, method):
self.__db_dir = os.path.join(env.BASE_DIR, "db")
def setup_method(self, method):
self._data_dir = os.path.join(env.BASE_DIR, "data")
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")
def setup_method(self, method):
self._data_dir = os.path.join(env.BASE_DIR, "data")
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")
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"
)
def setup_method(self, method):
self._data_dir = os.path.join(env.BASE_DIR, "data")
def setup_method(self, method):
self._db_dir = os.path.join(env.BASE_DIR, "db")
def setup_method(self, method):
self._data_dir = os.path.join(env.BASE_DIR, "data")
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)