def addSkip(self, test_info, err_info, isRegistered=True): BaseReporter.addSkip(self, test_info, err_info, isRegistered) def add_elements(): self.writer.element("reason", err_info.exception_value()) self._add_testcase_element(test_info, "skip")
def addSkip(self, test_info, err_info, isRegistered=True): # addSkip can be called after or before stopTest: # 1) If a testcase is skipped programmatically, addSkip # is called before stopTest, as expected # 2) If a testcase is skipped using keyboard interrupt, # the testcase is rerun with a new decorator that # calls addSkip, causing it to be run after stopTest. # When adding the newline after SKIPPED, this has to be # taken into account. BaseReporter.addSkip(self, test_info, err_info, isRegistered) self._report_result("SKIPPED", "S", self.writers.warning) # newline needed here because newline added in stopTest gets # printed before SKIPPED does, if the root-cause was a # keyboardInterrupt, which can be recognized by an empty # exception value. if err_info.exc_info[2] is None: self._write_newline_after_result_if_necessary()
def addSkip(self, test_info, err_info, isRegistered=True): # TODO: why does addSkip get called _after_ stopTest? BaseReporter.addSkip(self, test_info, err_info, isRegistered) # newline needed because newline added in stopTest gets printed before # SKIPPED does self._report_result("SKIPPED\n", "S", self.writers.warning)
def addSkip(self, test_info, err_info, isRegistered=True): BaseReporter.addSkip(self, test_info, err_info, isRegistered) self._sio.write(HTMLReporter._SkipTemplate % (str(test_info), self._test_time(test_info), str(err_info.exception_value())))
def addSkip(self, test_info, err_info, isRegistered=True): BaseReporter.addSkip(self, test_info, err_info, isRegistered) def add_elements(): self.writer.element( "reason", err_info.exception_value() ) self._add_testcase_element(test_info, "skip")
def addSkip(self, test_info, err_info, isRegistered=True): BaseReporter.addSkip(self, test_info, err_info, isRegistered) self._sio.write(HTMLReporter._SkipTemplate%(str(test_info), self._test_time(test_info), str(err_info.exception_value())))
def addSkip(self, test_info, err_info, isRegistered=True): BaseReporter.addSkip(self, test_info, err_info, isRegistered) self._pbg.set_state('skip') self._pbg.advance()
def addSkip(self, test_info, err_info, isRegistered=True): # TODO: why does addSkip get called _after_ stopTest? BaseReporter.addSkip(self, test_info, err_info, isRegistered) # newline needed because newline added in stopTest gets printed before # SKIPPED does self._report_result("SKIPPED\n", "S", self.writers.warning)