mirror of
https://github.com/home-assistant/core.git
synced 2025-11-10 11:29:46 +00:00
Bump aiohttp to 3.9.4 (#110730)
* Bump aiohttp to 3.9.4 This is rc0 for now but will be updated when the full release it out * cleanup cruft * regen * fix tests (these changes are fine) * chunk size is too small to read since boundry is now enforced * chunk size is too small to read since boundry is now enforced
This commit is contained in:
@@ -90,9 +90,9 @@ async def test_upload_large_file(
|
||||
file_upload.TEMP_DIR_NAME + f"-{getrandbits(10):03x}",
|
||||
),
|
||||
patch(
|
||||
# Patch one megabyte to 8 bytes to prevent having to use big files in tests
|
||||
# Patch one megabyte to 50 bytes to prevent having to use big files in tests
|
||||
"homeassistant.components.file_upload.ONE_MEGABYTE",
|
||||
8,
|
||||
50,
|
||||
),
|
||||
):
|
||||
res = await client.post("/api/file_upload", data={"file": large_file_io})
|
||||
@@ -152,9 +152,9 @@ async def test_upload_large_file_fails(
|
||||
file_upload.TEMP_DIR_NAME + f"-{getrandbits(10):03x}",
|
||||
),
|
||||
patch(
|
||||
# Patch one megabyte to 8 bytes to prevent having to use big files in tests
|
||||
# Patch one megabyte to 50 bytes to prevent having to use big files in tests
|
||||
"homeassistant.components.file_upload.ONE_MEGABYTE",
|
||||
8,
|
||||
50,
|
||||
),
|
||||
patch(
|
||||
"homeassistant.components.file_upload.Path.open", return_value=_mock_open()
|
||||
|
||||
Reference in New Issue
Block a user