Open eddiekelleypdx opened 5 years ago
I don't think that I'll get any unit tests written for this before the demo (since all of our unit / integration tests use the SFTPClient class only - none of them actually test SFPCLI), but will do a little investigating now...
OK, I guess that I was able to get something thrown together to test this... The unit tests that were added test additional stuff (help, quit, etc.) as well, but the SFTPCLI object's __init__
method does some calls to print
, which clutters the terminal during testing.
this crashes if you just push enter without typing anything
Good catch on the empty command execution exception... I've pushed a fix for that, as well as a couple of other unit tests that may or may not be helpful.
shlex.split()
is used in place of the stringsplit()
method to avoid splitting substrings (e.g.,ls "path with spaces in the name"
) Closes #52