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 9, 2022
1 parent 433d2a0 commit 16df78c
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions sdcflows/workflows/tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,15 @@ def test_fmap_wf(tmpdir, workdir, outdir, bids_layouts, dataset, subject):
if workdir:
wf.base_dir = str(workdir)

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

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 16df78c

Please sign in to comment.