Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
fsleyes
fsleyes
Commits
d3ef0363
Commit
d3ef0363
authored
May 01, 2022
by
Paul McCarthy
🚵
Browse files
TEST: Test that filetree query is executed
parent
fb1a5ff4
Changes
1
Hide whitespace changes
Inline
Side-by-side
fsleyes/tests/plugins/test_filetreepanel.py
View file @
d3ef0363
...
...
@@ -44,3 +44,18 @@ def _test_filetreepanel(ortho, overlayList, displayCtx):
'session'
:
'*'
,
'hemi'
:
'*'
,
'surf'
:
'*'
}
# toggle on the T1w, check that
# file list is correctly generated
ftpanel
.
fileTypePanel
.
GetWidgets
()[
0
].
SetValue
(
True
)
ftpanel
.
fileTypePanel
.
onToggle
(
None
)
realYield
()
grid
=
ftpanel
.
fileListPanel
.
GridContents
()
expect
=
[[
'session'
,
'subject'
,
'Notes'
,
'T1w'
],
[
'1'
,
'01'
,
''
,
'x'
],
[
'1'
,
'02'
,
''
,
'x'
],
[
'1'
,
'03'
,
''
,
'x'
],
[
'2'
,
'01'
,
''
,
'x'
],
[
'2'
,
'02'
,
''
,
'x'
],
[
'2'
,
'03'
,
''
,
'x'
]]
assert
grid
==
expect
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment