We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b41567 commit e9a78ecCopy full SHA for e9a78ec
tests/client/test_auth.py
@@ -84,13 +84,15 @@ def valid_tokens():
84
85
86
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="",
+ metadata = OAuthClientMetadata.model_validate(
+ {
+ "redirect_uris": ["http://localhost:3030/callback"],
+ "client_uri": "",
+ "logo_uri": "",
+ "tos_uri": "",
+ "policy_uri": "",
94
+ "jwks_uri": "",
95
+ }
96
)
97
98
assert metadata.client_uri is None
0 commit comments