Skip to content

Commit 699f011

Browse files
committed
merge
1 parent 6263b53 commit 699f011

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

tests/unit/client/test_oauth2_providers.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -735,9 +735,7 @@ def __init__(self) -> None:
735735
super().__init__(post_responses=[_make_response(200, json_data=_token_json())])
736736
self.last_data: dict[str, str] | None = None
737737

738-
async def post(
739-
self, url: str, *, data: dict[str, str], headers: dict[str, str]
740-
) -> httpx.Response:
738+
async def post(self, url: str, *, data: dict[str, str], headers: dict[str, str]) -> httpx.Response:
741739
self.last_data = data
742740
return await super().post(url, data=data, headers=headers)
743741

tests/unit/server/auth/test_token_handler.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import hashlib
33
import json
44
import time
5+
from collections.abc import Mapping
56
from types import SimpleNamespace
67
from typing import Any, cast
78

@@ -105,11 +106,11 @@ async def exchange_refresh_token(self, client_info: object, refresh_token: objec
105106

106107

107108
class DummyRequest:
108-
def __init__(self, data: dict[str, str]) -> None:
109-
self._data = data
109+
def __init__(self, data: Mapping[str, str | None]) -> None:
110+
self._data = dict(data)
110111

111-
async def form(self) -> dict[str, str]:
112-
return self._data
112+
async def form(self) -> dict[str, str | None]:
113+
return dict(self._data)
113114

114115

115116
@pytest.mark.anyio

0 commit comments

Comments
 (0)