URL-encode whitespace in empty file name test parameter

Replace raw spaces with %20%20 to avoid flakiness from HTTP clients
handling unencoded spaces differently.
This commit is contained in:
J. Nick Koston
2026-02-08 07:48:41 -06:00
parent 5c5bf50e49
commit b8cad678b1
+1 -1
View File
@@ -616,7 +616,7 @@ async def test_download_binary_handler_no_firmware_bin_path(
@pytest.mark.asyncio
@pytest.mark.usefixtures("mock_ext_storage_path")
@pytest.mark.parametrize("file_value", ["", " ", "%20"])
@pytest.mark.parametrize("file_value", ["", "%20%20", "%20"])
async def test_download_binary_handler_empty_file_name(
dashboard: DashboardTestHelper,
mock_storage_json: MagicMock,