Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
uniqueg committed Jan 31, 2024
1 parent e2091c4 commit db6e02a
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 6 deletions.
21 changes: 21 additions & 0 deletions tests/files/zarp/workflow/Snakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
"""Dummy version of Snakefile for ZARP workflow."""


localrules:
dummy,
all,


rule all:
input:
"zarp_dummy_output",


rule dummy:
input:
config["samples"],
output:
"zarp_dummy_output",
shell:
'cat {input} > {output}'

9 changes: 4 additions & 5 deletions tests/files/zarp/workflow/rules/htsinfer.smk
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
"""
Dummy version of Snakefile for downloading inferring RNA-Seq sample
metadata with HTSinfer.
"""
"""Dummy version of Snakefile for inferring sample metadata with HTSinfer."""


localrules:
Expand All @@ -15,8 +12,10 @@ rule all:


rule dummy:
input:
config["samples"],
output:
config["samples_out"],
shell:
'echo "sample\tfq1" > {output}'
'cat {input} > {output}'

2 changes: 1 addition & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def test_normal_mode_with_args(self, monkeypatch, tmpdir):
)
with pytest.raises(SystemExit) as exc:
main()
assert exc.value.code == 1
assert exc.value.code == 0

def test_normal_mode_with_runtime_error(self, monkeypatch, tmpdir):
"""Call with runtime error being raised."""
Expand Down

0 comments on commit db6e02a

Please sign in to comment.