MCPcopy
hub / github.com/authlib/authlib / test_register_remote_app

Function test_register_remote_app

tests/clients/test_django/test_oauth_client.py:21–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19
20
21def test_register_remote_app():
22 oauth = OAuth()
23 with pytest.raises(AttributeError):
24 oauth.dev # noqa:B018
25
26 oauth.register(
27 "dev",
28 client_id="dev",
29 client_secret="dev",
30 request_token_url="https://provider.test/request-token",
31 api_base_url="https://resource.test/api",
32 access_token_url="https://provider.test/token",
33 authorize_url="https://provider.test/authorize",
34 )
35 assert oauth.dev.name == "dev"
36 assert oauth.dev.client_id == "dev"
37
38
39def test_register_with_overwrite():

Callers

nothing calls this directly

Calls 2

registerMethod · 0.95
OAuthClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…