Skip to content

Commit 9a8a3af

Browse files
fix testcase
1 parent 30201b8 commit 9a8a3af

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

tests/test_params_outdated_code/Snakefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ This is a test for the params syntax.
44
"""
55
shell.executable("bash")
66

7-
rule:
8-
input: "somedir/test.out"
9-
107
rule:
118
params: lambda wildcards: "-f", dir="{dir}"
129
output: "{dir}/test.out"

tests/tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,10 @@ def test_params():
264264
run(dpath("test_params"))
265265

266266

267-
def test_params_outdated_code(mocker):
267+
def test_params_outdated_metadata(mocker):
268268
spy = mocker.spy(Persistence, "has_outdated_metadata")
269269

270-
run(dpath("test_params_outdated_code"))
270+
run(dpath("test_params_outdated_code"), targets=["somedir/test.out"])
271271
assert spy.spy_return == True
272272

273273

0 commit comments

Comments
 (0)