1
1
import unittest
2
- from siibra .core .parcellation import Parcellation , ParcellationVersion , MapType
2
+ from siibra .core .parcellation import (
3
+ Parcellation , ParcellationVersion , MapType , ConflictingArgumentException
4
+ )
3
5
from siibra .core .region import Region
4
- from siibra .commons import Species , MapIndex
6
+ from siibra .commons import Species
5
7
from uuid import uuid4
6
8
from parameterized import parameterized
7
9
from unittest .mock import patch , MagicMock
21
23
region_child2 = Region ("bar" )
22
24
region_parent = Region ("parent foo bar" , children = [region_child1 , region_child2 ])
23
25
26
+
24
27
class DummySpace :
25
28
def matches (self ):
26
29
raise NotImplementedError
@@ -218,7 +221,6 @@ def test_find_regions(self, parents_only):
218
221
p .find .assert_called_once_with (regionspec = "fooz" )
219
222
self .assertEqual (result , [parc3 ] if parents_only else [parc1 , parc2 , parc3 ])
220
223
221
-
222
224
@parameterized .expand ([
223
225
# partial matches work
224
226
("foo bar" , False , False , region_parent ),
@@ -232,7 +234,6 @@ def test_find_regions(self, parents_only):
232
234
def test_get_region (self , regionspec , find_topmost , allow_tuple , result ):
233
235
self .parc .children = [region_parent ]
234
236
self .assertIs (self .parc .get_region (regionspec , find_topmost , allow_tuple ), result )
235
-
236
237
237
238
238
239
# all_parcs = [p for p in parcellations]
@@ -271,5 +272,4 @@ def test_get_region(self, regionspec, find_topmost, allow_tuple, result):
271
272
272
273
# parc.get_map(space, map_type)
273
274
274
-
275
275
parc_has_ebrains_doi = [("human" , "julich brain 2.9" )]
0 commit comments