use a fixture that isn't modified in-place during testing
@@ -343,13 +343,13 @@ def test_get_tr(layout_7t_trt):
assert tr == 4.0
-def test_to_df(layout_7t_trt):
- df = layout_7t_trt.to_df()
- assert df.shape == (339, 10)
+def test_to_df(layout_ds117):
+ df = layout_ds117.to_df()
+ assert df.shape == (115, 11)
target = {'datatype', 'fmap', 'run', 'path', 'acquisition', 'scans',
- 'session', 'subject', 'suffix', 'task'}
+ 'session', 'subject', 'suffix', 'task', 'proc'}
assert set(df.columns) == target
- assert df['subject'].nunique() == 10
+ assert set(df['subject'].dropna().unique()) == {'01', '02', 'emptyroom'}
def test_parse_file_entities():
