Skip to content

Commit 02ffd6b

Browse files
Merge pull request #752 from microsoftgraph/dependabot/pip/httpx-http2--0.28.0
chore(deps-dev): bump httpx[http2] from 0.27.2 to 0.28.0
2 parents ec8cfdb + f7de852 commit 02ffd6b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ hpack==4.0.0 ; python_full_version >= '3.6.1'
139139

140140
httpcore==1.0.7 ; python_version >= '3.7'
141141

142-
httpx[http2]==0.27.2
142+
httpx[http2]==0.28.0
143143

144144
hyperframe==6.0.1 ; python_full_version >= '3.6.1'
145145

tests/test_graph_client_factory.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ def test_create_with_default_middleware_custom_client():
4141
def test_create_with_default_middleware_custom_client_with_proxy():
4242
"""Test creation of GraphClient using default middleware"""
4343
proxies = {
44-
"http://": "http://localhost:8030",
45-
"https://": "http://localhost:8031",
44+
"http://": httpx.HTTPTransport(proxy="http://localhost:8030"),
45+
"https://": httpx.HTTPTransport(proxy="http://localhost:8031"),
4646
}
4747
timeout = httpx.Timeout(20, connect=10)
48-
custom_client = httpx.AsyncClient(timeout=timeout, http2=True, proxies=proxies)
48+
custom_client = httpx.AsyncClient(timeout=timeout, http2=True, mounts=proxies)
4949
client = GraphClientFactory.create_with_default_middleware(client=custom_client)
5050

5151
assert isinstance(client, httpx.AsyncClient)
@@ -98,11 +98,11 @@ def test_create_with_custom_middleware_custom_client():
9898
def test_create_with_custom_middleware_custom_client_with_proxy():
9999
"""Test creation of HTTP Clients with custom middleware"""
100100
proxies = {
101-
"http://": "http://localhost:8030",
102-
"https://": "http://localhost:8031",
101+
"http://": httpx.HTTPTransport(proxy="http://localhost:8030"),
102+
"https://": httpx.HTTPTransport(proxy="http://localhost:8031"),
103103
}
104104
timeout = httpx.Timeout(20, connect=10)
105-
custom_client = httpx.AsyncClient(timeout=timeout, http2=True, proxies=proxies)
105+
custom_client = httpx.AsyncClient(timeout=timeout, http2=True, mounts=proxies)
106106
middleware = [
107107
GraphTelemetryHandler(),
108108
]

0 commit comments

Comments
 (0)