Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
fslpy
Commits
1547872a
Commit
1547872a
authored
5 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
TEST: update bids tests
parent
23c46fa1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_bids.py
+2
-2
2 additions, 2 deletions
tests/test_bids.py
with
2 additions
and
2 deletions
tests/test_bids.py
+
2
−
2
View file @
1547872a
...
@@ -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
'
),
]
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment