Пример #1
0
 def test_update_step(self):
     options = Mock()
     options.update = True
     expected_stderr = "Updating working directory\n"
     OutputCapture().assert_outputs(self,
                                    self._run_step, [Update, options],
                                    expected_stderr=expected_stderr)
Пример #2
0
 def _default_options(self):
     options = Mock()
     options.force_clean = False
     options.clean = True
     options.check_builders = True
     options.quiet = False
     options.non_interactive = False
     options.update = True
     options.build = True
     options.test = True
     options.close_bug = True
     return options
Пример #3
0
 def _default_options(self):
     options = Mock()
     options.force_clean = False
     options.clean = True
     options.check_builders = True
     options.quiet = False
     options.non_interactive = False
     options.update = True
     options.build = True
     options.test = True
     options.close_bug = True
     return options
Пример #4
0
 def test_update_step(self):
     options = Mock()
     options.update = True
     expected_stderr = "Updating working directory\n"
     OutputCapture().assert_outputs(self, self._run_step, [Update, options], expected_stderr=expected_stderr)