kopia lustrzana https://github.com/ihabunek/toot
Show exception on test failure
rodzic
614680b6d4
commit
9c15d2ca16
|
|
@ -159,4 +159,8 @@ def posted_status_id(out):
|
|||
|
||||
def assert_ok(result: Result):
|
||||
if result.exit_code != 0:
|
||||
raise AssertionError(f"Command failed with exit code {result.exit_code}\nStderr: {result.stderr}")
|
||||
raise AssertionError(
|
||||
f"Command failed with exit code {result.exit_code}\n"
|
||||
f"stderr: {result.stderr}\n"
|
||||
f"exception: {result.exception}"
|
||||
)
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue