Skip to content

Commit dd2e450

Browse files
committed
Workaround bidsschematools talking too much at the test level for now
1 parent 4abb631 commit dd2e450

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

dandi/cli/tests/test_cmd_ls.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,13 @@ def test_ls_bids_file(bids_examples: Path) -> None:
7070
bids_file_path = (
7171
bids_examples / "asl003" / "sub-Sub1" / "anat" / "sub-Sub1_T1w.nii.gz"
7272
)
73-
r = CliRunner().invoke(ls, ["-f", "yaml", str(bids_file_path)])
73+
r = CliRunner().invoke(
74+
ls,
75+
["-f", "yaml", str(bids_file_path)],
76+
# workaround since bst manages to log to stdout
77+
# https://github.com/bids-standard/bids-specification/pull/2085
78+
env={"BIDS_SCHEMA_LOG_LEVEL": "CRITICAL"},
79+
)
7480
assert r.exit_code == 0, r.output
7581
data = yaml_load(r.stdout, "safe")
7682
assert len(data) == 1

0 commit comments

Comments
 (0)