@@ -170,7 +170,7 @@ def test_vahadane_normalize(
170170# -------------------------------------------------------------------------------------
171171
172172
173- def test_command_line_stainnorm (source_image : Path , tmp_path : Path ) -> None :
173+ def test_command_line_stainnorm (source_image : Path , track_tmp_path : Path ) -> None :
174174 """Test for the stain normalization CLI."""
175175 source_img = Path (source_image )
176176 target_img = _local_sample_path ("target_image.png" )
@@ -184,7 +184,7 @@ def test_command_line_stainnorm(source_image: Path, tmp_path: Path) -> None:
184184 "--target-input" ,
185185 target_img ,
186186 "--output-path" ,
187- str (tmp_path / "stainnorm_output" ),
187+ str (track_tmp_path / "stainnorm_output" ),
188188 "--method" ,
189189 "reinhard" ,
190190 ],
@@ -201,7 +201,7 @@ def test_command_line_stainnorm(source_image: Path, tmp_path: Path) -> None:
201201 "--target-input" ,
202202 target_img ,
203203 "--output-path" ,
204- str (tmp_path / "stainnorm_output" ),
204+ str (track_tmp_path / "stainnorm_output" ),
205205 "--method" ,
206206 "ruifrok" ,
207207 ],
@@ -218,7 +218,7 @@ def test_command_line_stainnorm(source_image: Path, tmp_path: Path) -> None:
218218 "--target-input" ,
219219 target_img ,
220220 "--output-path" ,
221- str (tmp_path / "stainnorm_output" ),
221+ str (track_tmp_path / "stainnorm_output" ),
222222 "--method" ,
223223 "macenko" ,
224224 ],
@@ -235,7 +235,7 @@ def test_command_line_stainnorm(source_image: Path, tmp_path: Path) -> None:
235235 "--target-input" ,
236236 target_img ,
237237 "--output-path" ,
238- str (tmp_path / "stainnorm_output" ),
238+ str (track_tmp_path / "stainnorm_output" ),
239239 "--method" ,
240240 "vahadane" ,
241241 ],
@@ -244,7 +244,7 @@ def test_command_line_stainnorm(source_image: Path, tmp_path: Path) -> None:
244244 assert stainnorm_result .exit_code == 0
245245
246246
247- def test_cli_stainnorm_dir (source_image : Path , tmp_path : Path ) -> None :
247+ def test_cli_stainnorm_dir (source_image : Path , track_tmp_path : Path ) -> None :
248248 """Test directory input for the stain normalization CLI."""
249249 source_img = source_image .parent
250250 target_img = _local_sample_path ("target_image.png" )
@@ -258,7 +258,7 @@ def test_cli_stainnorm_dir(source_image: Path, tmp_path: Path) -> None:
258258 "--target-input" ,
259259 target_img ,
260260 "--output-path" ,
261- str (tmp_path / "stainnorm_ouput" ),
261+ str (track_tmp_path / "stainnorm_ouput" ),
262262 "--method" ,
263263 "ruifrok" ,
264264 ],
@@ -267,7 +267,9 @@ def test_cli_stainnorm_dir(source_image: Path, tmp_path: Path) -> None:
267267 assert stainnorm_result .exit_code == 0
268268
269269
270- def test_cli_stainnorm_file_not_found_error (source_image : Path , tmp_path : Path ) -> None :
270+ def test_cli_stainnorm_file_not_found_error (
271+ source_image : Path , track_tmp_path : Path
272+ ) -> None :
271273 """Test file not found error for the stain normalization CLI."""
272274 source_img = Path (source_image )
273275 target_img = stain_norm_target ()
@@ -281,7 +283,7 @@ def test_cli_stainnorm_file_not_found_error(source_image: Path, tmp_path: Path)
281283 "--target-input" ,
282284 target_img ,
283285 "--output-path" ,
284- str (tmp_path / "stainnorm_output" ),
286+ str (track_tmp_path / "stainnorm_output" ),
285287 "--method" ,
286288 "vahadane" ,
287289 ],
@@ -292,7 +294,9 @@ def test_cli_stainnorm_file_not_found_error(source_image: Path, tmp_path: Path)
292294 assert isinstance (stainnorm_result .exception , FileNotFoundError )
293295
294296
295- def test_cli_stainnorm_method_not_supported (source_image : Path , tmp_path : Path ) -> None :
297+ def test_cli_stainnorm_method_not_supported (
298+ source_image : Path , track_tmp_path : Path
299+ ) -> None :
296300 """Test method not supported for the stain normalization CLI."""
297301 source_img = Path (source_image )
298302 target_img = stain_norm_target ()
@@ -306,7 +310,7 @@ def test_cli_stainnorm_method_not_supported(source_image: Path, tmp_path: Path)
306310 "--target-input" ,
307311 target_img ,
308312 "--output-path" ,
309- str (tmp_path / "stainnorm_output" ),
313+ str (track_tmp_path / "stainnorm_output" ),
310314 "--method" ,
311315 "Test" ,
312316 ],
0 commit comments