@@ -461,7 +461,7 @@ def test_change_overlay( # noqa: PLR0915
461461 assert response .status_code == 200
462462 assert response .content_type == "text/html; charset=utf-8"
463463 # check that the overlay has been correctly added
464- lname = f"layer{ len (empty_app .pyramids [session_id ])- 1 } "
464+ lname = f"layer{ len (empty_app .pyramids [session_id ]) - 1 } "
465465 layer = empty_app .pyramids [session_id ][lname ]
466466 assert layer .wsi .info .file_path == overlay_path
467467
@@ -493,7 +493,7 @@ def test_change_overlay( # noqa: PLR0915
493493 data = {"overlay_path" : safe_str (jpg_path )},
494494 )
495495 # check that the overlay has been correctly added
496- lname = f"layer{ len (empty_app .pyramids [session_id ])- 1 } "
496+ lname = f"layer{ len (empty_app .pyramids [session_id ]) - 1 } "
497497 layer = empty_app .pyramids [session_id ][lname ]
498498 assert np .all (layer .wsi .img == imread (jpg_path ))
499499
@@ -517,7 +517,7 @@ def test_change_overlay( # noqa: PLR0915
517517 data = {"overlay_path" : safe_str (tiff_path )},
518518 )
519519 # check that the overlay has been correctly added
520- lname = f"layer{ len (empty_app .pyramids [session_id ])- 1 } "
520+ lname = f"layer{ len (empty_app .pyramids [session_id ]) - 1 } "
521521 layer = empty_app .pyramids [session_id ][lname ]
522522 assert layer .wsi .info .file_path == tiff_path
523523
0 commit comments