Skip to content

Commit da72e3a

Browse files
committed
✅ improve mock client transport
1 parent c2f5930 commit da72e3a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@
88
def get_mock_github(
99
handle: Callable[[httpx.Request], httpx.Response],
1010
) -> GitHub[UnauthAuthStrategy]:
11-
return GitHub(transport=httpx.MockTransport(handle))
11+
transport = httpx.MockTransport(handle)
12+
return GitHub(transport=transport, async_transport=transport)

0 commit comments

Comments
 (0)