Skip to content
Snippets Groups Projects
Commit 1547872a authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

TEST: update bids tests

parent 23c46fa1
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,7 @@ import fsl.utils.bids as fslbids ...@@ -19,7 +19,7 @@ import fsl.utils.bids as fslbids
def test_parseFilename(): def test_parseFilename():
with pytest.raises(ValueError): with pytest.raises(ValueError):
fslbids.parseFilename('bad.txt') fslbids.parseFilename('bad_file.txt')
tests = [ tests = [
('sub-01_ses-01_t1w.nii.gz', ('sub-01_ses-01_t1w.nii.gz',
...@@ -62,12 +62,12 @@ def test_isBIDSFile(): ...@@ -62,12 +62,12 @@ def test_isBIDSFile():
Path('sub-01_ses-01_t1w.nii'), Path('sub-01_ses-01_t1w.nii'),
Path('sub-01_ses-01_t1w.json'), Path('sub-01_ses-01_t1w.json'),
Path('a-1_b-2_c-3_d-4_e.nii.gz'), Path('a-1_b-2_c-3_d-4_e.nii.gz'),
Path('sub-01_ses-01_t1w.txt'),
] ]
badfiles = [ badfiles = [
Path('sub-01_ses-01.nii.gz'), Path('sub-01_ses-01.nii.gz'),
Path('sub-01_ses-01_t1w'), Path('sub-01_ses-01_t1w'),
Path('sub-01_ses-01_t1w.'), Path('sub-01_ses-01_t1w.'),
Path('sub-01_ses-01_t1w.txt'),
Path('sub_ses-01_t1w.nii.gz'), Path('sub_ses-01_t1w.nii.gz'),
Path('sub-01_ses_t1w.nii.gz'), Path('sub-01_ses_t1w.nii.gz'),
] ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment