+ apply Debian patch: unittest to stdout
This commit is contained in:
parent
18a770f616
commit
82a4eb0cec
|
@ -22,7 +22,7 @@
|
|||
#* Juergen Riegel 2002 *
|
||||
#***************************************************************************/
|
||||
|
||||
import FreeCAD, os, unittest
|
||||
import FreeCAD, os, unittest, sys
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
@ -58,7 +58,7 @@ def All():
|
|||
|
||||
def TestText(s):
|
||||
s = unittest.defaultTestLoader.loadTestsFromName(s)
|
||||
r = unittest.TextTestRunner()
|
||||
r = unittest.TextTestRunner(stream=sys.stdout,verbosity=2)
|
||||
r.run(s)
|
||||
|
||||
def Test(s):
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
import FreeCAD,FreeCADGui
|
||||
# import the App Test module
|
||||
import TestApp #Test as Module name not possible
|
||||
import sys
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
# define the Commands of the Test Application module
|
||||
|
@ -97,7 +98,7 @@ class TestAllTextCmd:
|
|||
"Test all commando object"
|
||||
def Activated(self):
|
||||
import unittest, TestApp
|
||||
unittest.TextTestRunner().run(unittest.defaultTestLoader.loadTestsFromName("TestApp.All"))
|
||||
unittest.TextTestRunner(stream=sys.stdout,verbosity=2).run(unittest.defaultTestLoader.loadTestsFromName("TestApp.All"))
|
||||
|
||||
def GetResources(self):
|
||||
return {'Pixmap' : 'Std_Tool1',
|
||||
|
|
Loading…
Reference in New Issue
Block a user