-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: lowercase SIFs dir see CCBR/RENEE#181 * refactor: make singularity_sif_dir a dynamic property * test: sif cache logic * test: hpc class repr * chore: update CHANGELOG.md * ci: 🤖 render readme --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
727a622
commit 3e60ed9
Showing
6 changed files
with
39 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from ccbr_tools.pipeline.cache import get_sif_cache_dir, get_singularity_cachedir | ||
|
||
|
||
def test_get_sif_cache_dir(): | ||
assertions = [ | ||
"'CCBR_Pipeliner/SIFs' in get_sif_cache_dir('biowulf')", | ||
"'CCBR-Pipelines/SIFs' in get_sif_cache_dir('frce')", | ||
] | ||
errors = [assertion for assertion in assertions if not eval(assertion)] | ||
assert not errors, "errors occurred:\n{}".format("\n".join(errors)) | ||
|
||
|
||
def test_get_singularity_cachedir(): | ||
assertions = [ | ||
"get_singularity_cachedir('outdir') == 'outdir/.singularity'", | ||
"get_singularity_cachedir('outdir', 'cache') == 'cache'", | ||
] | ||
errors = [assertion for assertion in assertions if not eval(assertion)] | ||
assert not errors, "errors occurred:\n{}".format("\n".join(errors)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters