Skip to content

Commit

Permalink
ensure test checks exit status
Browse files Browse the repository at this point in the history
  • Loading branch information
ircwaves committed Nov 2, 2023
1 parent 4def254 commit 0967d0a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,4 @@ def test_manage_get_execution_by_payload_id(deployment, basic_payloads, statedb)
@pytest.mark.parametrize("command,expect_exit_zero", (("true", True), ("false", False)))
def test_call_cli_return_values(deployment, command, expect_exit_zero):
result = deployment(f"call {command}")
assert result.exit_code == 0 if expect_exit_zero else result.exit_code != 0

0 comments on commit 0967d0a

Please sign in to comment.