Skip to content

Commit f1c01f7

Browse files
committed
[TEST] Add MMP fetcher tests
1 parent 3fca6fc commit f1c01f7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

netneurotools/tests/test_datasets.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,13 @@ def test_fetch_hcp_standards(tmpdir):
148148
assert os.path.isdir(hcp)
149149

150150

151+
def test_fetch_mmpall(tmpdir):
152+
mmp = datasets.fetch_mmpall(data_dir=tmpdir, verbose=0)
153+
assert len(mmp) == 2
154+
assert all(os.path.isfile(hemi) for hemi in mmp)
155+
assert all(hasattr(mmp, attr) for attr in ('lh', 'rh'))
156+
157+
151158
def test_fetch_voneconomo(tmpdir):
152159
vek = datasets.fetch_voneconomo(data_dir=tmpdir, verbose=0)
153160
assert all(hasattr(vek, k) and len(vek[k]) == 2 for k in ['gcs', 'ctab'])

0 commit comments

Comments
 (0)