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:
J. Nick Koston 2024-04-11 11:58:56 -10:00 committed by GitHub
parent db38da8eb8
commit 137514edb7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 12 additions and 12 deletions

View file

@ -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()