Exemplo n.º 1
0
 def addSkip(self, test, err, isRegistered=True):
     import unittest
     # In Python 2.7, a SkipTest class is made available.
     # We should be able to deal with that by extracting the
     # right info from it.
     if isinstance(err,str) and hasattr(unittest,'SkipTest'):
         err = unittest.SkipTest(err), err, None
     self._apply_method("addSkip", create_test_info(test), create_err_info(test, err), isRegistered)
Exemplo n.º 2
0
    def addError(self, test, err):
        test_info = create_test_info(test)
        err_info = create_err_info(test, err)

        if err_info.is_skip():
            self._apply_method("addSkip", test_info, err_info)
            return

        self._apply_method("addError", test_info, err_info)
Exemplo n.º 3
0
    def addError(self, test, err):
        test_info = create_test_info(test)
        err_info = create_err_info(test, err)

        if err_info.is_skip():
            self._apply_method("addSkip", test_info, err_info)
            return

        self._apply_method("addError", test_info, err_info)
Exemplo n.º 4
0
 def addSkip(self, test, err, isRegistered=True):
     self._apply_method("addSkip", create_test_info(test), create_err_info(test, err), isRegistered)
Exemplo n.º 5
0
 def addAssert(self, test, assertName, varList, exception):
     self._apply_method("addAssert", create_test_info(test), assertName, varList, exception)
Exemplo n.º 6
0
 def addSuccess(self, test):
     self._apply_method("addSuccess", create_test_info(test))
Exemplo n.º 7
0
 def addFailure(self, test, err):
     self._apply_method("addFailure", create_test_info(test), create_err_info(test, err))
Exemplo n.º 8
0
 def stopTest(self, test):
     self._apply_method("stopTest", create_test_info(test))
Exemplo n.º 9
0
 def addSkip(self, test, err, isRegistered=True):
     self._apply_method("addSkip", create_test_info(test),
                        create_err_info(test, err), isRegistered)
Exemplo n.º 10
0
 def addAssert(self, test, assertName, varList, exception):
     self._apply_method("addAssert", create_test_info(test), assertName,
                        varList, exception)
Exemplo n.º 11
0
 def addSuccess(self, test):
     self._apply_method("addSuccess", create_test_info(test))
Exemplo n.º 12
0
 def addFailure(self, test, err):
     self._apply_method("addFailure", create_test_info(test),
                        create_err_info(test, err))
Exemplo n.º 13
0
 def stopTest(self, test):
     self._apply_method("stopTest", create_test_info(test))