mirror of
https://github.com/clearlinux/autospec.git
synced 2026-08-21 14:47:18 +00:00
e13d3edb03
Create a mock function that copies files from the testfiles directory to a tmp directory, when attempting to download files from the network. Create a mock function for head_request that returns 404 for a few specified urls, and 200 for the rest. The mock calls will allow the functionality of the pkg_integrity program to be tested and not dependent on networking. Tests will no longer need to be skipped in travis with the removal of network dependency. Removed a few tests that were not specific to pkg_integrity, but instead were testing the importing and exporting abilities of the gpg key server. Added mock as a requirement to the requirements.txt file. Signed-off-by: Gabi Beyer <gabib@live.com>
8.0 KiB
8.0 KiB