The test failures in #41 are probably linked to two issues in the test_fetch_decompress() test:
The use_wget_if_available argument in fetch_file() results in different output for the function.
the test test_fetch_decompress downloads one file, but in the second iteration of the for loop for the use_wget_if_available argument the file is already downloaded - that is what datacache does. And then the download is skipped and the test may succeed or fail for both -even if one option breaks the functionality - depending on if True or False comes first in the list
for use_wget_if_available in [True, False]: => test fails
for use_wget_if_available in [False, True]: => test succeeds
Remember to manually delete the downloaded files in the Homo_sapiens.GRCh37.75.dna_rm.chromosome.MT.fa.gz and Homo_sapiens.GRCh37.75.dna_rm.chromosome.MT.fa before each test run.
The test failures in #41 are probably linked to two issues in the
test_fetch_decompress()
test:fetch_file()
results in different output for the function.test_fetch_decompress
downloads one file, but in the second iteration of the for loop for the use_wget_if_available argument the file is already downloaded - that is what datacache does. And then the download is skipped and the test may succeed or fail for both -even if one option breaks the functionality - depending on if True or False comes first in the listfor use_wget_if_available in [True, False]:
=> test failsfor use_wget_if_available in [False, True]:
=> test succeedsRemember to manually delete the downloaded files in the
Homo_sapiens.GRCh37.75.dna_rm.chromosome.MT.fa.gz
andHomo_sapiens.GRCh37.75.dna_rm.chromosome.MT.fa
before each test run.