Skip to content

Commit e637344

Browse files
committed
fix tests
1 parent 84a7d98 commit e637344

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

bidsmreye/bids_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def list_subjects(cfg: Config, layout: BIDSLayout) -> list[str]:
221221
subjects = layout.get(return_type="id", target="subject", subject=cfg.subjects)
222222

223223
if subjects == [] or subjects is None:
224-
raise RuntimeError("No subject found")
224+
raise RuntimeError(f"No subject found in layout:\n\t{layout.root}")
225225

226226
if cfg.debug:
227227
subjects = [subjects[0]]

tests/test_visualize.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ def test_group_report():
3030
input_dir = Path().resolve().joinpath("tests", "data", "derivatives", "bidsmreye")
3131

3232
cfg = Config(
33-
input_dir,
34-
input_dir,
33+
input_dir=input_dir,
34+
output_dir=input_dir.parent,
3535
)
3636

3737
group_report(cfg)
@@ -43,7 +43,7 @@ def test_group_report_cli():
4343

4444
bidsmreye(
4545
bids_dir=bids_dir,
46-
output_dir=bids_dir,
46+
output_dir=bids_dir.parent,
4747
analysis_level="group",
4848
action="qc",
4949
participant_label=["9001", "9008"],

0 commit comments

Comments
 (0)