From 401d3c2056acf5c33eac4daceb71f133748f1467 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 8 Feb 2026 07:36:02 -0600 Subject: [PATCH] Fix idedata test mock to use Path instead of str The test set mock_image.path to str, but FlashImage.path is a Path. This masked a pre-existing bug where Path.endswith() doesn't exist. Fix the mock to match the real type so as_posix() works correctly. --- tests/dashboard/test_web_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/dashboard/test_web_server.py b/tests/dashboard/test_web_server.py index 95afe19899e..d21873cf61e 100644 --- a/tests/dashboard/test_web_server.py +++ b/tests/dashboard/test_web_server.py @@ -422,7 +422,7 @@ async def test_download_binary_handler_idedata_fallback( # Mock idedata response mock_image = Mock() - mock_image.path = str(bootloader_file) + mock_image.path = bootloader_file mock_idedata_instance = Mock() mock_idedata_instance.extra_flash_images = [mock_image] mock_idedata.return_value = mock_idedata_instance