MCPcopy Index your code
hub / github.com/authlib/authlib / test_init_app_params

Function test_init_app_params

tests/clients/test_flask/test_oauth_client.py:90–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88
89
90def test_init_app_params():
91 app = Flask(__name__)
92 oauth = OAuth()
93 oauth.init_app(app, SimpleCache())
94 assert oauth.cache is not None
95 assert oauth.update_token is None
96
97 oauth.init_app(app, update_token=lambda o: o)
98 assert oauth.update_token is not None
99
100
101def test_create_client():

Callers

nothing calls this directly

Calls 3

init_appMethod · 0.95
OAuthClass · 0.90
SimpleCacheClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…