aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/test_file_utils.py
AgeCommit message (Collapse)Author
2021-05-13Rename file_utils to fs_helpersBonfaceKilz
Generally avoid naming things with a "utils" prefix/ suffix since it encourages contributors to dump any new functions there; and over time, as the code grows, things get messy...
2021-05-08Add extra genotype test fileBonfaceKilz
* tests/unit/test_data/genotype.txt: New file. * tests/unit/test_file_utils.py: Update failing test.
2021-03-23Convert Path object to a strBonfaceKilz
* gn3/file_utils.py (cache_ipfs_file): Return a str instead of a path object. * tests/unit/test_file_utils.py: Update failing tests.
2021-03-23Add function to cache ipfs filesBonfaceKilz
2021-03-23Apply autopep-8BonfaceKilz
2021-03-10Apply yapf file formatting to fileBonfaceKilz
2021-03-10Add extra tests for file utilsBonfaceKilz
In test server, files were not extracted properly. This test exposes the bug.
2021-03-10Run yapf-formatter against fileBonfaceKilz
2021-03-08Delete "lookup_file" procedureBonfaceKilz
2021-03-08Extract files to "/TMPDIR/TOKEN"BonfaceKilz
TOKEN is the user token * gn3/file_utils.py (extract_uploaded_file): Add extra param "token". If a token is empty, create a new directory based off that token. * tests/unit/test_file_utils.py: Update failing tests.
2021-02-16Add procedure for uploading gzipped fileBonfaceKilz
* gn3/file_utils.py (extract_uploaded_file): New procedure. * tests/unit/test_file_utils.py: Test cases for ^^. * tests/unit/upload-data.tar.gz: New test data.
2021-02-12Use sorted list of files when calculating md5sums of directoryBonfaceKilz
* gn3/file_utils.py (get_dir_hash): Sort list of files before calculating their md5sums. * tests/unit/test_file_utils.py (test_get_dir_hash): Update test-case md5sum.
2021-02-12Add new procedure to return a python dict from a json fileBonfaceKilz
* gn3/file_utils.py (jsonfile_to_dict): New procedure * tests/unit/test_file_utils.py: New test-cases.
2021-02-12Add new procedure for looking up files in a given ENV variableBonfaceKilz
* gn3/file_utils.py (lookup_file): New function. * tests/unit/test_file_utils.py: New test cases for ^^.
2021-02-12Add function for computing the hash of a directoryBonfaceKilz