Commit d3ef0363 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

TEST: Test that filetree query is executed

parent fb1a5ff4
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment