Skip to content

Commit

Permalink
Add test_cmd_work_invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
thenets committed Oct 20, 2021
1 parent 354f6f4 commit a8ad649
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions receptorctl/tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit a8ad649

Please sign in to comment.