debug mode

This commit is contained in:
André Roth
2026-05-14 13:51:36 +02:00
parent c77d788493
commit d27c5856de
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -164,10 +164,10 @@ class BaseTest(object):
self.run()
self.check()
except Exception as exc:
if self.debugOutput:
print(f"API log:\n{self.debug_output()}")
raise exc
finally:
if self.debugOutput:
print(f"API log:\n{self.debug_output()}")
self.teardown()
def prepare_remove_all(self):
+1
View File
@@ -155,6 +155,7 @@ def run(include_long_tests=False, capture_results=False, tests=None, filters=Non
traceback.print_exception(typ, val, tb, file=orig_stdout)
else:
orig_stdout.write(colored("\b\b\b\bOK", color="green", attrs=["bold"]) + f" {duration}\n")
orig_stdout.write(testout.get_contents())
t.shutdown()