@@ -86,15 +86,15 @@ def test_img_source_no_matches(spe):
8686def test_img_source_both_str (spe ):
8787 res = spe .img_source (sample_id = "sample_1" , image_id = "dice" )
8888 expected_source = spe .get_img (sample_id = "sample_1" , image_id = "dice" ).img_source ()
89-
89+
9090 assert isinstance (res , Path )
9191 assert res == expected_source
9292
9393
9494def test_img_source_both_str_path (spe ):
9595 res = spe .img_source (sample_id = "sample_1" , image_id = "dice" , path = True )
9696 expected_source = spe .get_img (sample_id = "sample_1" , image_id = "dice" ).img_source (as_path = True )
97-
97+
9898 assert isinstance (res , str )
9999 assert res == expected_source
100100
@@ -103,7 +103,7 @@ def test_img_source_both_true(spe):
103103 res = spe .img_source (sample_id = True , image_id = True )
104104 images = spe .get_img (sample_id = True , image_id = True )
105105 expected_sources = [img .img_source () for img in images ]
106-
106+
107107 assert isinstance (res , list )
108108 assert res == expected_sources
109109
@@ -112,15 +112,15 @@ def test_img_source_both_true_path(spe):
112112 res = spe .img_source (sample_id = True , image_id = True , path = True )
113113 images = spe .get_img (sample_id = True , image_id = True )
114114 expected_sources = [img .img_source (as_path = True ) for img in images ]
115-
115+
116116 assert isinstance (res , list )
117117 assert res == expected_sources
118118
119119
120120def test_img_source_both_none (spe ):
121121 res = spe .img_source (sample_id = None , image_id = None )
122122 expected_source = spe .get_img (sample_id = None , image_id = None ).img_source ()
123-
123+
124124 assert isinstance (res , Path )
125125 assert res == expected_source
126126
@@ -129,31 +129,31 @@ def test_img_source_sample_str_image_true(spe):
129129 res = spe .img_source (sample_id = "sample_1" , image_id = True )
130130 images = spe .get_img (sample_id = "sample_1" , image_id = True )
131131 expected_sources = [img .img_source () for img in images ]
132-
132+
133133 assert isinstance (res , list )
134134 assert res == expected_sources
135135
136136
137137def test_img_source_sample_true_image_str (spe ):
138138 res = spe .img_source (sample_id = True , image_id = "desert" )
139139 expected_source = spe .get_img (sample_id = True , image_id = "desert" ).img_source ()
140-
140+
141141 assert isinstance (res , Path )
142142 assert res == expected_source
143143
144144
145145def test_img_source_sample_str_image_none (spe ):
146146 res = spe .img_source (sample_id = "sample_1" , image_id = None )
147147 expected_source = spe .get_img (sample_id = "sample_1" , image_id = None ).img_source ()
148-
148+
149149 assert isinstance (res , Path )
150150 assert res == expected_source
151151
152152
153153def test_img_source_sample_none_image_str (spe ):
154154 res = spe .img_source (sample_id = None , image_id = "aurora" )
155155 expected_source = spe .get_img (sample_id = None , image_id = "aurora" ).img_source ()
156-
156+
157157 assert isinstance (res , Path )
158158 assert res == expected_source
159159
@@ -162,7 +162,7 @@ def test_img_source_sample_true_image_none(spe):
162162 res = spe .img_source (sample_id = True , image_id = None )
163163 images = spe .get_img (sample_id = True , image_id = None )
164164 expected_sources = [img .img_source () for img in images ]
165-
165+
166166 assert isinstance (res , list )
167167 assert res == expected_sources
168168
@@ -171,6 +171,6 @@ def test_img_source_sample_none_image_true(spe):
171171 res = spe .img_source (sample_id = None , image_id = True )
172172 images = spe .get_img (sample_id = None , image_id = True )
173173 expected_sources = [img .img_source () for img in images ]
174-
174+
175175 assert isinstance (res , list )
176176 assert res == expected_sources
0 commit comments