Skip to content

Commit

Permalink
Small improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Hofer-Julian committed Nov 29, 2024
1 parent aada6de commit 5837eb7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/integration_python/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@ def verify_cli_command(
stdout, stderr, returncode = process.stdout, process.stderr, process.returncode
output = Output(command, stdout, stderr, returncode)
print(f"command: {command}, stdout: {stdout}, stderr: {stderr}, code: {returncode}")
if expected_exit_code is not None:
assert (
returncode == expected_exit_code
), f"Return code was {returncode}, expected {expected_exit_code}, stderr: {stderr}"
assert (
returncode == expected_exit_code
), f"Return code was {returncode}, expected {expected_exit_code}, stderr: {stderr}"

if stdout_contains:
if isinstance(stdout_contains, str):
Expand Down

0 comments on commit 5837eb7

Please sign in to comment.