def run(self): """ Runs the crawler of the generated project """ os.chdir(os.path.join(self.dir_name, self.project_name)) cmd = RunCommand(settings=self.settings) cmd.checked_execute()
def run(self): """ Runs the crawler of the generated project """ project_dir = os.path.join(self.dir_name, self.project_name) os.chdir(project_dir) os.sys.path.insert(0, project_dir) cmd = RunCommand(settings=self.settings) cmd.checked_execute()
def run(self): """ Runs the crawler of the generated project """ project_dir = os.path.join(self.dir_name, self.project_name) os.chdir(project_dir) os.sys.path.insert(0, project_dir) cmd = RunCommand(settings=self.settings) cmd.checked_execute()
def test_params_run(self): cmd = RunCommand(template="sarasa", config="config_file") self.assertTrue("template" in cmd.kwargs) self.assertTrue(cmd.kwargs["template"] == "sarasa") self.assertTrue("config" in cmd.kwargs) self.assertTrue(cmd.kwargs["config"] == "config_file")
def test_run(self): cmd = RunCommand(self.settings_args) cmd.checked_execute()
def test_run(self): cmd = RunCommand(self.settings_args) cmd.checked_execute()