beautified test output

xkb
sezanzeb 4 years ago committed by sezanzeb
parent 0b713d30c7
commit d59ad26823

@ -193,4 +193,13 @@ if __name__ == "__main__":
testsuite = unittest.defaultTestLoader.discover(
'testcases', pattern='*.py'
)
testrunner = unittest.TextTestRunner(verbosity=1).run(testsuite)
# add a newline to each "qux (foo.bar)..." output, because the logs
# will be on the same line otherwise
originalStartTest = unittest.TextTestResult.startTest
def startTest(self, test):
originalStartTest(self, test)
print()
unittest.TextTestResult.startTest = startTest
testrunner = unittest.TextTestRunner(verbosity=2).run(testsuite)

@ -46,7 +46,6 @@ def gtk_iteration():
def launch(argv=None, bin_path='bin/key-mapper-gtk'):
"""Start key-mapper-gtk with the command line argument array argv."""
print('\nLaunching UI')
if not argv:
argv = ['-d']

Loading…
Cancel
Save