Skip to content

Commit a607eb5

Browse files
oestebaneffigies
andauthored
TEST: Use less confusing function name for testing CLI with --dry-run (#424)
* fix: confusing function name in test * dbg: maximize sphinx verbosity * fix: add texlive as a dependency I believe nbsphinx is tripping when calling pandoc. The notebook has some latex symbols so I'm adding texlive to the dependencies installation. I believe this is the only difference between the local testing environment I've created and CircleCI. --------- Co-authored-by: Chris Markiewicz <[email protected]>
1 parent 048eac9 commit a607eb5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sdcflows/cli/tests/test_find_estimators.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import pytest
2626
from niworkflows.utils.testing import generate_bids_skeleton
2727

28-
from sdcflows.cli.main import main as find_estimators
28+
from sdcflows.cli.main import main as cli_finder_wrapper
2929
from sdcflows.fieldmaps import clear_registry
3030

3131
OUTPUT = """\
@@ -131,7 +131,7 @@
131131
("b0field", b0field_config, "pepolar"),
132132
],
133133
)
134-
def test_find_estimators(tmp_path, capsys, test_id, config, estimator_id):
134+
def test_cli_finder_wrapper(tmp_path, capsys, test_id, config, estimator_id):
135135
"""Test the CLI with --dry-run."""
136136
import sdcflows.config as sc
137137

@@ -141,7 +141,7 @@ def test_find_estimators(tmp_path, capsys, test_id, config, estimator_id):
141141
path = (tmp_path / test_id).absolute()
142142
generate_bids_skeleton(path, config)
143143
with pytest.raises(SystemExit) as wrapped_exit:
144-
find_estimators([str(path), str(tmp_path / "out"), "participant", "--dry-run"])
144+
cli_finder_wrapper([str(path), str(tmp_path / "out"), "participant", "--dry-run"])
145145

146146
assert wrapped_exit.value.code == 0
147147
output = OUTPUT.format(path=path, estimator_id=estimator_id)

0 commit comments

Comments
 (0)