Age | Commit message (Collapse) | Author |
|
|
|
* Use `with` in place of plain `open`
* Use f-strings in place of `str.format()`
* Remove string interpolation from queries - provide data as query parameters
* other minor fixes
|
|
Use pytest's `mark` feature to explicitly categorise the tests and run them
per category
|
|
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...
|
|
* tests/unit/test_data/genotype.txt: New file.
* tests/unit/test_file_utils.py: Update failing test.
|
|
* gn3/file_utils.py (cache_ipfs_file): Return a str instead of a path object.
* tests/unit/test_file_utils.py: Update failing tests.
|
|
|
|
|
|
|
|
In test server, files were not extracted properly. This test exposes the bug.
|
|
|
|
|
|
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.
|
|
* 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.
|
|
* 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.
|
|
* gn3/file_utils.py (jsonfile_to_dict): New procedure
* tests/unit/test_file_utils.py: New test-cases.
|
|
* gn3/file_utils.py (lookup_file): New function.
* tests/unit/test_file_utils.py: New test cases for ^^.
|
|
|