Skip to content

Commit

Permalink
Added receptorctl test_cmd_work_invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
thenets committed Oct 18, 2021
1 parent 89d2931 commit 7f91f6a
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 @@ -64,3 +64,7 @@ def test_cmd_status(self):
) == set(
json_output.keys()
), "The command returned unexpected keys from json output"

def test_cmd_work_invalid(self):
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 7f91f6a

Please sign in to comment.