Add unit tests for download_file for non-existing file and internal server error.
@mikem I've recommended using requests_mock module. In some subsequent PR I would like to replace manually mocked requests calls with this library, which is more convenient for thinks like status_code, etc.
:thumbsup:
We'll need to update docs/source/writing_koji_code.rst to indicate the addition requirements for running unit tests.
docs/source/writing_koji_code.rst
Also similar for docs/source/configuring_jenkins.rst (as well as applying for our jenkins, not the failure to the side).
docs/source/configuring_jenkins.rst
I've added docs in PR #1223
pretty please pagure-ci rebuild
Merging #1223, which includes these changes.
Pull-Request has been closed by mikem
Add unit tests for download_file for non-existing file and internal server error.