Skip to content

Commit

Permalink
test: update tests for new behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
kelly-sovacool committed Aug 13, 2024
1 parent 879c6db commit 6583dce
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/renee/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def renee_base(*paths):
@return abs_path <str>
"""
basedir = pathlib.Path(__file__).absolute().parent.parent.parent
return basedir.joinpath(*paths)
return str(basedir.joinpath(*paths))


def get_version():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def test_cache_sif():


def test_cache_nosif():
output, config = run_in_temp(f"{renee_run}")
output, config = run_in_temp(f"{renee_run} --sif-cache not/a/path")
assertions = [
config["images"]["arriba"] == "docker://nciccbr/ccbr_arriba_2.0.0:v0.0.1"
]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def test_dryrun():
if get_hpcname() == "biowulf":
with tempfile.TemporaryDirectory() as tmp_dir:
run_args = argparse.Namespace(
input=list(glob.glob(renee_base(".tests", "*.fastq.gz"))),
input=list(glob.glob(f"{renee_base('.tests')}/*.fastq.gz")),
output=tmp_dir,
genome=renee_base("config", "genomes", "biowulf", "hg38_36.json"),
mode="slurm",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

def test_renee_base():
renee_bin = renee_base(os.path.join("bin", "renee"))
assert str(renee_bin).endswith("/bin/renee") and renee_bin.exists()
assert str(renee_bin).endswith("/bin/renee") and os.path.exists(renee_bin)


def test_cp_safe():
Expand Down

0 comments on commit 6583dce

Please sign in to comment.