MCPcopy
hub / github.com/authlib/authlib / test_userinfo_getattribute

Function test_userinfo_getattribute

tests/core/test_oidc/test_core.py:169–174  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

167
168
169def test_userinfo_getattribute():
170 user = UserInfo({"sub": "1"})
171 assert user.sub == "1"
172 assert user.email is None
173 with pytest.raises(AttributeError):
174 user.invalid # noqa: B018
175
176
177def test_userinfo_validate_locale():

Callers

nothing calls this directly

Calls 1

UserInfoClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…