1
from __future__ import print_function
6
class SoftwareCentertTestResult(unittest.TestResult):
8
def startTest(self, test):
9
print('\n\n\n==================================================', test)
10
super(SoftwareCentertTestResult, self).startTest(test)
12
def stopTest(self, test):
13
print('==================================================\n\n\n')
14
super(SoftwareCentertTestResult, self).stopTest(test)
17
# Testing frameworks built on top of unittest may want access to the TestResult
18
# object generated by running a set of tests for reporting purposes; a TestResult
19
# instance is returned by the TestRunner.run() method for this purpose.
22
class SoftwareCenterTextTestRunner(unittest.TextTestRunner):
24
def __init__(self, *args, **kwargs):
25
print('\n*********** SoftwareCenterTextTestRunner before', args, kwargs)
26
kwargs['resultclass'] = SoftwareCenterTextTestRunner
27
print('\n*********** SoftwareCenterTextTestRunner after', args, kwargs)
28
super(SoftwareCenterTextTestRunner, self).__init__(*args, **kwargs)
30
#def _makeResult(self):
31
# return SoftwareCentertTestResult()