From 0967d0a97789719d7fe77a1f56aa9f84d78efcb3 Mon Sep 17 00:00:00 2001 From: Ian Cooke Date: Thu, 2 Nov 2023 15:52:50 -0400 Subject: [PATCH] ensure test checks exit status --- tests/test_manage.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_manage.py b/tests/test_manage.py index 1c809f6..2aba873 100644 --- a/tests/test_manage.py +++ b/tests/test_manage.py @@ -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