Skip to content

Commit e9a78ec

Browse files
author
Mrutunjay Kinagi
committed
test(auth): avoid pyright arg-type errors in empty-uri regression
1 parent 5b41567 commit e9a78ec

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

tests/client/test_auth.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,15 @@ def valid_tokens():
8484

8585

8686
def test_oauth_client_metadata_treats_empty_optional_uris_as_none():
87-
metadata = OAuthClientMetadata(
88-
redirect_uris=[AnyUrl("http://localhost:3030/callback")],
89-
client_uri="",
90-
logo_uri="",
91-
tos_uri="",
92-
policy_uri="",
93-
jwks_uri="",
87+
metadata = OAuthClientMetadata.model_validate(
88+
{
89+
"redirect_uris": ["http://localhost:3030/callback"],
90+
"client_uri": "",
91+
"logo_uri": "",
92+
"tos_uri": "",
93+
"policy_uri": "",
94+
"jwks_uri": "",
95+
}
9496
)
9597

9698
assert metadata.client_uri is None

0 commit comments

Comments
 (0)