Пример #1
0
 def _test_ews(self, ews, results_are_conclusive=True):
     ews.bind_to_tool(MockTool())
     ews.host = MockHost()
     options = Mock()
     options.port = None
     options.run_tests = ews.run_tests
     self.assert_queue_outputs(ews, expected_logs=self._default_expected_logs(ews, results_are_conclusive), options=options)
Пример #2
0
 def _test_ews(self, ews):
     ews.bind_to_tool(MockTool())
     ews.host = MockHost()
     options = Mock()
     options.port = None
     options.run_tests = ews.run_tests
     self.assert_queue_outputs(ews, expected_logs=self._default_expected_logs(ews), options=options)
Пример #3
0
 def _test_ews(self, ews, results_are_conclusive=True, use_security_sensitive_patch=False):
     ews.bind_to_tool(MockTool())
     ews.host = MockHost()
     options = Mock()
     options.port = None
     options.run_tests = ews.run_tests
     work_item = MockTool().bugs.fetch_attachment(10008) if use_security_sensitive_patch else None
     self.assert_queue_outputs(ews, work_item=work_item, expected_logs=self._default_expected_logs(ews, results_are_conclusive, work_item, will_fetch_from_status_server=bool(use_security_sensitive_patch)), options=options)
 def _test_builder_ews(self, ews):
     ews.bind_to_tool(MockTool())
     options = Mock()
     options.port = None
     options.run_tests = ews._default_run_tests
     self.assert_queue_outputs(
         ews,
         expected_logs=self._default_expected_logs(ews),
         options=options)
Пример #5
0
 def _test_builder_ews(self, ews):
     ews.bind_to_tool(MockTool())
     options = Mock()
     options.port = None
     options.run_tests = ews._default_run_tests
     self.assert_queue_outputs(ews, expected_stderr=self._default_expected_stderr(ews), options=options)