Skip to content

Commit

Permalink
Add an extra test case
Browse files Browse the repository at this point in the history
It already passed, but it's good to have this verified.
  • Loading branch information
walles committed Nov 4, 2023
1 parent 8a8b9b9 commit b552d79
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/px_commandline_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,12 @@ def test_get_command_aws():
px_commandline.get_command("/wherever/python3 aws s3 help flaska")
== "aws s3 help"
)

assert px_commandline.get_command("python aws s3 sync help") == "aws s3 sync help"
assert px_commandline.get_command("python aws s3 sync nothelp") == "aws s3 sync"

assert px_commandline.get_command("python aws s3 --unknown sync") == "aws s3"

assert (
px_commandline.get_command(
" ".join(
Expand Down

0 comments on commit b552d79

Please sign in to comment.