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"