Esempio n. 1
0
 def setUp(self):
     self._listener = MagicMock(ExecutorListener)
     self._tested = Component(name="Foo",
                              test_settings=TestSettings(
                                  "green tests", "junit", "./", ".xml"))
     self._log = BytesIO()
     self._engine = Engine(self._tested, SimulatedShell(self._log, "."),
                           self._listener)
     self._configurations = [("config_1", "useless"),
                             ("config_2", "useless")]
Esempio n. 2
0
 def _select_shell(self, arguments, log_file):
     shell = Shell(log_file, ".", self._ui)
     if arguments.is_simulated:
         shell = SimulatedShell(log_file, ".", self._ui)
     return shell
Esempio n. 3
0
 def setUp(self):
     self._working_directory = "./"
     self._log = BytesIO()
     self._shell = SimulatedShell(self._log, self._working_directory)