Bump httpx to 0.24.0 and httpcore to 0.17.0 (#91308)

This commit is contained in:
J. Nick Koston 2023-04-12 20:11:59 -10:00 committed by GitHub
parent c9d81bd217
commit 6dbe67e909
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 6 deletions

View File

@ -27,7 +27,7 @@ hassil==1.0.6
home-assistant-bluetooth==1.9.3 home-assistant-bluetooth==1.9.3
home-assistant-frontend==20230411.0 home-assistant-frontend==20230411.0
home-assistant-intents==2023.3.29 home-assistant-intents==2023.3.29
httpx==0.23.3 httpx==0.24.0
ifaddr==0.1.7 ifaddr==0.1.7
janus==1.0.0 janus==1.0.0
jinja2==3.1.2 jinja2==3.1.2
@ -100,7 +100,7 @@ regex==2021.8.28
# requirements so we can directly link HA versions to these library versions. # requirements so we can directly link HA versions to these library versions.
anyio==3.6.2 anyio==3.6.2
h11==0.14.0 h11==0.14.0
httpcore==0.16.3 httpcore==0.17.0
# Ensure we have a hyperframe version that works in Python 3.10 # Ensure we have a hyperframe version that works in Python 3.10
# 5.2.0 fixed a collections abc deprecation # 5.2.0 fixed a collections abc deprecation

View File

@ -34,7 +34,7 @@ dependencies = [
"ciso8601==2.3.0", "ciso8601==2.3.0",
# When bumping httpx, please check the version pins of # When bumping httpx, please check the version pins of
# httpcore, anyio, and h11 in gen_requirements_all # httpcore, anyio, and h11 in gen_requirements_all
"httpx==0.23.3", "httpx==0.24.0",
"home-assistant-bluetooth==1.9.3", "home-assistant-bluetooth==1.9.3",
"ifaddr==0.1.7", "ifaddr==0.1.7",
"jinja2==3.1.2", "jinja2==3.1.2",

View File

@ -10,7 +10,7 @@ awesomeversion==22.9.0
bcrypt==4.0.1 bcrypt==4.0.1
certifi>=2021.5.30 certifi>=2021.5.30
ciso8601==2.3.0 ciso8601==2.3.0
httpx==0.23.3 httpx==0.24.0
home-assistant-bluetooth==1.9.3 home-assistant-bluetooth==1.9.3
ifaddr==0.1.7 ifaddr==0.1.7
jinja2==3.1.2 jinja2==3.1.2

View File

@ -105,7 +105,7 @@ regex==2021.8.28
# requirements so we can directly link HA versions to these library versions. # requirements so we can directly link HA versions to these library versions.
anyio==3.6.2 anyio==3.6.2
h11==0.14.0 h11==0.14.0
httpcore==0.16.3 httpcore==0.17.0
# Ensure we have a hyperframe version that works in Python 3.10 # Ensure we have a hyperframe version that works in Python 3.10
# 5.2.0 fixed a collections abc deprecation # 5.2.0 fixed a collections abc deprecation

View File

@ -1,4 +1,5 @@
"""Test The generic (IP Camera) config flow.""" """Test The generic (IP Camera) config flow."""
import contextlib
import errno import errno
from http import HTTPStatus from http import HTTPStatus
import os.path import os.path
@ -330,7 +331,10 @@ async def test_still_template(
expected_errors, expected_errors,
) -> None: ) -> None:
"""Test we can handle various templates.""" """Test we can handle various templates."""
respx.get(url).respond(stream=fakeimgbytes_png) with contextlib.suppress(httpx.InvalidURL):
# There is no need to mock the request if its an
# invalid url because we will never make the request
respx.get(url).respond(stream=fakeimgbytes_png)
data = TESTDATA.copy() data = TESTDATA.copy()
data.pop(CONF_STREAM_SOURCE) data.pop(CONF_STREAM_SOURCE)
data[CONF_STILL_IMAGE_URL] = template data[CONF_STILL_IMAGE_URL] = template