diff --git a/tests/test_bids.py b/tests/test_bids.py index e80fc199..e9063fbf 100644 --- a/tests/test_bids.py +++ b/tests/test_bids.py @@ -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): @@ -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'