Example #1
0
 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)
Example #2
0
 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
Example #3
0
def init_reactor(logger):
    execution_manager = ExecutionManager(logger)
    reactor = Reactor(logger, execution_manager)
    return reactor
Example #4
0
 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)