Skip to content

Commit 81eded5

Browse files
committed
applying changes from Chris' review
1 parent b0c51c1 commit 81eded5

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

pydra/engine/tests/conftest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import pytest
22

3-
# from pydra import set_input_validator
43

54
try:
65
import importlib_resources

pydra/engine/tests/test_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def test_load_and_run(tmpdir):
178178
"""testing load_and_run for pickled task"""
179179
task_pkl = Path(tmpdir.join("task_main.pkl"))
180180

181-
task = multiply(name="mult").split("x", x=[1, 2], y=10)
181+
task = multiply(name="mult", y=10).split(x=[1, 2])
182182
task.state.prepare_states(inputs=task.inputs)
183183
task.state.prepare_inputs()
184184
with task_pkl.open("wb") as fp:

pydra/engine/tests/test_helpers_file.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ def test_ensure_list(filename, expected):
4949

5050

5151
def test_copy_nested_files_copy(tmp_path: Path):
52+
# Test copying files from within nested data structures
5253
src_dir = tmp_path / "src"
5354

5455
src_dir.mkdir()

pydra/engine/tests/test_shelltask.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,9 +1270,8 @@ def test_shell_cmd_inputspec_9a(tmp_path, plugin, results_function):
12701270
the change: input file has directory with a dot
12711271
"""
12721272
cmd = "cp"
1273-
ddir = tmp_path / "data.inp"
1274-
ddir.mkdir()
1275-
file = ddir / ("file.txt")
1273+
file = tmp_path / "data.inp" / "file.txt"
1274+
file.parent.mkdir()
12761275
file.write_text("content\n")
12771276

12781277
my_input_spec = SpecInfo(

pydra/engine/tests/test_shelltask_inputspec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1941,7 +1941,7 @@ def test_shell_cmd_inputs_template_1_st():
19411941

19421942

19431943
# TODO: after deciding how we use requires/templates
1944-
def test_shell_cmd_inputs_di(
1944+
def test_shell_cmd_inputs_denoise_image(
19451945
tmp_path,
19461946
):
19471947
"""example from #279"""

0 commit comments

Comments
 (0)