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): sys.argv.clear() sys.argv.append("spam") sys.argv.append("spam") cmd_parser = CommandArgumentParser() self._cmd_args = cmd_parser.parse() self._log_file = os.path.join(env.BASE_DIR, "logs", "app.log") self._data_dir = os.path.join(env.BASE_DIR, "data") runner = ScenarioRunner(self._cmd_args) runner.add_system_path()
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.BASE_DIR, "project", "spam") self._cmn_dir = env.COMMON_DIR self._pj_scenario_file = os.path.join(env.BASE_DIR, "project", "spam", "scenario.yml") self._cmn_scenario_dir = env.COMMON_SCENARIO_DIR self._cmn_scenario_file = os.path.join(env.COMMON_DIR, "scenario.yml")
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): 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): cmd_parser = CommandArgumentParser() sys.argv.clear() sys.argv.append("spam") sys.argv.append("spam") self._cmd_args = cmd_parser.parse()
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("hoge") sys.argv.append("hoge") self._log_file = os.path.join(env.BASE_DIR, "logs", "app.log")
def setup_method(self, method): cmd_parser = CommandArgumentParser() self._cmd_args = cmd_parser.parse()
def setup_method(self, method): 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")