Skip to content

Commit

Permalink
Revert test changes for run type int
Browse files Browse the repository at this point in the history
  • Loading branch information
nx10 committed Jun 20, 2024
1 parent e1e2e95 commit 0239364
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/test_entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
sub="A01",
ses="B02",
task="rest",
run="1",
run=1,
datatype="func",
suffix="bold",
ext=".nii",
Expand Down
4 changes: 2 additions & 2 deletions tests/test_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def test_table_files(tab: BIDSTable):
}

ents = file.entities
assert (ents.sub, ents.task, ents.run) == ("01", "balloonanalogrisktask", "01")
assert (ents.sub, ents.task, ents.run) == ("01", "balloonanalogrisktask", 1)


@pytest.mark.parametrize(
Expand Down Expand Up @@ -232,7 +232,7 @@ def test_join_bids_path(
expected: str,
):
path = join_bids_path(entities, prefix=prefix, valid_only=valid_only)
assert str(path) == expected
assert Path(path).as_posix() == expected


if __name__ == "__main__":
Expand Down

0 comments on commit 0239364

Please sign in to comment.