Skip to content

Commit

Permalink
Update test_find_estimators.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Oct 4, 2024
1 parent 8bef670 commit b164fa3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sdcflows/cli/tests/test_find_estimators.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,11 @@ def test_cli_finder_wrapper(tmp_path, capsys, test_id, config, estimator_id):

path = (tmp_path / test_id).absolute()
generate_bids_skeleton(path, config)
# This was set to raise a SystemExit, but was only raising an ImageFileError
with pytest.raises(ImageFileError) as wrapped_exit:
cli_finder_wrapper([str(path), str(tmp_path / "out"), "participant", "--dry-run"])

# ImageFileError has no code attribute, so we can't check the exit code
# assert wrapped_exit.value.code == 0
output = OUTPUT.format(path=path, estimator_id=estimator_id)
out, _ = capsys.readouterr()
Expand Down

0 comments on commit b164fa3

Please sign in to comment.