MCPcopy Create free account
hub / github.com/authlib/authlib / client

Function client

tests/django/test_oauth2/test_authorization_code_grant.py:43–56  ·  view source on GitHub ↗
(user)

Source from the content-addressed store, hash-verified

41
42@pytest.fixture(autouse=True)
43def client(user):
44 client = Client(
45 user_id=user.pk,
46 client_id="client-id",
47 client_secret="client-secret",
48 response_type="code",
49 grant_type="authorization_code",
50 scope="",
51 token_endpoint_auth_method="client_secret_basic",
52 default_redirect_uri="https://client.test",
53 )
54 client.save()
55 yield client
56 client.delete()
57
58
59def test_get_consent_grant_client(factory, server, client):

Callers

nothing calls this directly

Calls 2

ClientClass · 0.70
deleteMethod · 0.45

Tested by

no test coverage detected