def setUp(self): self.old_reactor = Reactor.current_instance() self.plugin_loader_mock = Mock(PluginLoader) self.logger = Mock() self.execution_manager = Mock(ExecutionManager) self.reactor = Reactor( self.logger, self.execution_manager, self.plugin_loader_mock)
def prepare_reactor(self): logger = StdOutLogger(threshold=Logger.DEBUG) execution_manager = ExecutionManager(logger) reactor = Reactor(logger, execution_manager) print(self.tmp_directory) reactor.prepare_build(project_directory=self.tmp_directory) return reactor
def init_reactor(logger): execution_manager = ExecutionManager(logger) reactor = Reactor(logger, execution_manager) return reactor
def setUp(self): self.plugin_loader_mock = mock(PluginLoader) self.logger = mock() self.execution_manager = mock(ExecutionManager) self.reactor = Reactor(self.logger, self.execution_manager, self.plugin_loader_mock)