def _make_options(self, verbose=False, **kwargs): defaults = { 'committer_minimum': 10, 'max_commit_age': 9, 'reviewer_minimum': 80, 'show_commits': False, 'verbose': verbose, } options = MockOptions(**defaults) options.update(**kwargs) return options
def _make_options(self, **kwargs): defaults = { 'committer_minimum': 10, 'max_commit_age': 9, 'reviewer_minimum': 80, 'show_commits': False, 'verbose': False, } options = MockOptions(**defaults) options.update(**kwargs) return options
def _default_options(self): options = MockOptions() 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
def _default_options(self): options = MockOptions() options.build = True options.build_style = True options.check_style = True options.check_style_filter = None options.clean = True options.close_bug = True options.force_clean = False options.non_interactive = False options.parent_command = 'MOCK parent command' options.quiet = False options.test = True options.update = True return options
def _default_options(self): options = MockOptions() options.build = True options.build_style = "release" options.check_style = True options.check_style_filter = None options.clean = True options.close_bug = True options.force_clean = False options.non_interactive = False options.parent_command = 'MOCK parent command' options.quiet = False options.test = True options.update = True options.architecture = 'MOCK ARCH' options.iterate_on_new_tests = 0 return options
def _default_options(self): options = MockOptions() options.build = True options.build_style = "release" options.check_style = True options.check_style_filter = None options.clean = True options.close_bug = True options.force_clean = False options.non_interactive = False options.parent_command = "MOCK parent command" options.quiet = False options.test = True options.update = True options.architecture = "MOCK ARCH" options.iterate_on_new_tests = 0 return options
def test_update_step(self): options = MockOptions() options.update = True expected_stderr = "Updating working directory\n" OutputCapture().assert_outputs(self, self._run_step, [Update, options], expected_stderr=expected_stderr)