def setUp(self):
     self.project = Project("unittest", ".")
     self.project.set_property("dir_install_logs", "any_directory")
     self.logger = mock(Logger)
     initialize_install_dependencies_plugin(self.project)
     when(pybuilder.plugins.python.install_dependencies_plugin).execute_command(any_value(), any_value(),
                                                                                shell=False).thenReturn(0)
 def setUp(self):
     self.project = Project("unittest", ".")
     self.project.set_property("dir_install_logs", "any_directory")
     self.logger = mock(Logger)
     initialize_install_dependencies_plugin(self.project)
     when(pybuilder.plugins.python.install_dependencies_plugin
          ).execute_command(any_value(), any_value(),
                            shell=False).thenReturn(0)
    def setUp(self):
        self.project = Project("unittest", ".")
        self.project.set_property("dir_install_logs", "any_directory")
        self.project.set_property("dir_target", "/any_target_directory")
        self.logger = Mock(Logger)

        self.pyb_env = Mock()
        self.pyb_env.executable = ["exec"]
        self.pyb_env.site_paths = []
        self.pyb_env.env_dir = "a"
        self.pyb_env.execute_command.return_value = 0

        initialize_install_dependencies_plugin(self.project)
예제 #4
0
    def setUp(self):
        self.project = Project("unittest", ".")
        self.project.set_property("install_env", "whatever")
        self.project.set_property("dir_install_logs", "any_directory")
        self.project.set_property("dir_target", "/any_target_directory")
        self.logger = Mock(Logger)

        self.reactor = Mock()
        self.pyb_env = Mock()
        self.pyb_env.executable = ["a/b"]
        self.pyb_env.env_dir = "a"
        self.pyb_env.execute_command.return_value = 0
        self.reactor.python_env_registry = {"whatever": self.pyb_env}

        initialize_install_dependencies_plugin(self.project)
예제 #5
0
 def setUp(self):
     self.project = Project("unittest", ".")
     self.project.set_property("dir_install_logs", "any_directory")
     self.project.set_property("dir_target", "/any_target_directory")
     self.logger = Mock(Logger)
     initialize_install_dependencies_plugin(self.project)