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 3c18ddd commit 269cff4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def test_append_run(study_bidsmap):

# Append the run elsewhere in the bidsmap
bids.append_run(bidsmap, run)
assert bidsmap['Foo']['Bar'][0]['provenance'] == run['provenance']
assert Path(bidsmap['Foo']['Bar'][0]['provenance']) == Path(run['provenance'])


def test_update_bidsmap(study_bidsmap):
Expand All @@ -350,8 +350,8 @@ def test_update_bidsmap(study_bidsmap):

# Update the bidsmap
bids.update_bidsmap(bidsmap, 'func', run)
assert bidsmap['DICOM']['anat'][-1]['provenance'] == run['provenance']
assert bidsmap['DICOM']['func'] [0]['provenance'] != run['provenance']
assert Path(bidsmap['DICOM']['anat'][-1]['provenance']) == Path(run['provenance'])
assert Path(bidsmap['DICOM']['func'] [0]['provenance']) != Path(run['provenance'])

# Modify the last anat run-item and update the bidsmap
run['bids']['foo'] = 'bar'
Expand Down

0 comments on commit 269cff4

Please sign in to comment.