mirror of
https://github.com/esphome/esphome.git
synced 2026-09-25 05:54:01 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user