示例#1
0
    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()
示例#2
0
    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()
示例#3
0
    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()
示例#4
0
    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")
示例#5
0
 def test_run(self):
     
     cmd = RunCommand(self.settings_args)
     cmd.checked_execute()
示例#6
0
    def test_run(self):

        cmd = RunCommand(self.settings_args)
        cmd.checked_execute()