Skip to content

Commit 628bf71

Browse files
committed
test: uniqueness of sparseindex cache prefixes
1 parent 0dcc471 commit 628bf71

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

e2e/volumes/test_sparsemap_cache_uniqueness.py

+8
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
from siibra.volumes.sparsemap import SparseMap
33

44

5+
def test_cache_prefixes():
6+
sparsemaps = [
7+
mp for mp in siibra.maps
8+
if isinstance(mp, siibra.volumes.sparsemap.SparseMap)
9+
]
10+
assert len(sparsemaps) == len([mp._cache_prefix for mp in sparsemaps])
11+
12+
513
def test_sparsemap_cache_uniqueness():
614
mp157 = siibra.get_map("julich 3.0", "colin 27", "statistical", spec="157")
715
mp175 = siibra.get_map("julich 3.0", "colin 27", "statistical", spec="175")

0 commit comments

Comments
 (0)