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):
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 test_parse(self):
cmd_parser = CommandArgumentParser()
cmd_args = cmd_parser.parse()
assert cmd_args.project_name == "spam"
def setup_method(self, method):
cmd_parser = CommandArgumentParser()
sys.argv.clear()
sys.argv.append("spam")
sys.argv.append("spam")
self._cmd_args = cmd_parser.parse()
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):
cmd_parser = CommandArgumentParser()
sys.argv.clear()
sys.argv.append("spam")
sys.argv.append("spam")
self._cmd_args = cmd_parser.parse()
def setup_method(self, method):
CommandArgumentParser()
sys.argv.clear()
sys.argv.append("spam")
sys.argv.append("spam")
self._listener = StepStatusListener()
self._executor = StepExecutor(["1"])
self._log_file = os.path.join(env.BASE_DIR, "logs", "app.log")
def setup_method(self, method):
cmd_parser = CommandArgumentParser()
sys.argv.clear()
sys.argv.append("spam")
sys.argv.append("spam")
self._cmd_args = cmd_parser.parse()
def setup_method(self, method):
cmd_parser = CommandArgumentParser()
sys.argv.clear()
sys.argv.append("spam")
sys.argv.append("spam")
self._cmd_args = cmd_parser.parse()
self._pj_dir = os.path.join(env.PROJECT_DIR, "spam")
self._pj_scenario_file = os.path.join(env.PROJECT_DIR, "spam", "scenario.yml")
def setup_method(self, method):
cmd_parser = CommandArgumentParser()
sys.argv.clear()
sys.argv.append("spam")
sys.argv.append("spam")
self._listener = ScenarioStatusListener()
self._worker = ScenarioWorker(cmd_parser.parse())
self._log_file = os.path.join(env.BASE_DIR, "logs", "app.log")
def run():
cmd_parser = CommandArgumentParser()
cmd_args = cmd_parser.parse()
runner = ScenarioRunner(cmd_args)
runner.add_system_path()
runner.create_scenario_queue()
return runner.execute_scenario()