Ejemplo n.º 1
0
 def add_unexpected_success(self, test):
     """Notify the manager about an unexpected success via queue."""
     self.send_message(
         AddResult(msg_id=self.worker_pid,
                   test_id=test.identifier,
                   code=TestOutcome.UNEXPECTED_SUCCESS,
                   info=None))
Ejemplo n.º 2
0
 def add_skip(self, test, reason):
     """Notify the manager about a skip via queue."""
     self.send_message(
         AddResult(msg_id=self.worker_pid,
                   test_id=test.identifier,
                   code=TestOutcome.SKIPPED,
                   info=reason))
Ejemplo n.º 3
0
    def add_expected_failure(self, test, exception_string):
        """Notify the manager about an expected failure via queue.

        This also wraps the exception so the error data could be passed
        through the queue.
        """
        self.send_message(
            AddResult(msg_id=self.worker_pid,
                      test_id=test.identifier,
                      code=TestOutcome.EXPECTED_FAILURE,
                      info=exception_string))
Ejemplo n.º 4
0
 def add_success(self, test):
     """Notify the manager about a success via queue."""
     self.send_message(
         AddResult(msg_id=self.worker_pid,
                   test_id=test.identifier,
                   code=TestOutcome.SUCCESS))