From a8ad64942d17d5ef32b811b4e2ceb21b142e5719 Mon Sep 17 00:00:00 2001 From: Luiz Costa Date: Wed, 20 Oct 2021 05:29:25 -0300 Subject: [PATCH] Add test_cmd_work_invalid --- receptorctl/tests/test_cli.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/receptorctl/tests/test_cli.py b/receptorctl/tests/test_cli.py index 092f876f9..ba12d90d6 100644 --- a/receptorctl/tests/test_cli.py +++ b/receptorctl/tests/test_cli.py @@ -30,3 +30,7 @@ def test_cmd_status(self, invoke_as_json): ) == set( json_output.keys() ), "The command returned unexpected keys from json output" + + def test_cmd_work_invalid(self, invoke): + result = invoke(commands.work, ["cancel", "foobar"]) + assert result.exit_code != 0, "The 'work cancel' command should fail, but did not return non-zero exit code"