Skip to content

Commit

Permalink
Fix test for Windows paths
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelzwiers committed Jan 28, 2024
1 parent 55be2f1 commit 7b06554
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def test_load_bidsmap(study_bidsmap):
bidsmap, _ = bids.load_bidsmap(Path('bidsmap_dccn'))
assert type(bidsmap) == ruamel.yaml.comments.CommentedMap
assert bidsmap != {}
assert bidsmap['DICOM']['anat'][0]['provenance'] == 'sub--unknown/ses--unknown/DICOM_anat_id001'
assert bidsmap['DICOM']['anat'][0]['provenance'] == str(Path('sub--unknown/ses--unknown/DICOM_anat_id001')) # Account for Windows paths

# Test loading with a dummy argument
bidsmap, filepath = bids.load_bidsmap(Path('dummy'))
Expand Down

0 comments on commit 7b06554

Please sign in to comment.