Skip to content

Commit

Permalink
TEST: Add regression test for merge nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Dec 8, 2022
1 parent 4f1e8b4 commit 04e569a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion sdcflows/workflows/tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,12 @@ def test_fmap_wf(tmpdir, workdir, outdir, bids_layouts, dataset, subject):
wf.base_dir = str(workdir)

if os.getenv("GITHUB_ACTIONS") != "true":
wf.run(plugin="Linear")
res = wf.run(plugin="Linear")

# Regression test for when out_merge_fmap_coeff was flattened and would
# have twice as many elements as the other nodes
assert all(
len(node.result.outputs.out) == len(estimators)
for node in res.nodes
if node.name.startswith("out_merge_")
)

0 comments on commit 04e569a

Please sign in to comment.