(user)
| 41 | |
| 42 | @pytest.fixture(autouse=True) |
| 43 | def 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 | |
| 59 | def test_get_consent_grant_client(factory, server, client): |