Closed rocketdey closed 2 years ago
Do you have any ideas how can I approach to this line to test it? https://github.com/covert-encryption/covert/blob/1fb22f36bb00d39d46505720b627fe15ecec775b/covert/__main__.py#L154-L155
Do you have any ideas how can I approach to this line to test it?
You will need to use --passphrase
(askpass) to trigger it. Test argparse()
only so that Covert won't actually try to ask for a password.
A nice increase in diff coverage and three real bugs found (and now fixed). Thanks. I'll merge this now, although some things remain to be tested.
Something for another PR: add test_clipboard
CLI test function that uses mocker to enable isatty (the same way as some other CLI tests do, to cover the 📋 copied
message) and also mocks the pyperclip copy and paste functions for armored text input/output.
Codecov Report
77.67% <69.44%> (+3.54%)
98.42% <100.00%> (+21.00%)
81.31% <0.00%> (+1.51%)
Continue to review full report at Codecov.