Debian Codegraph @

src/globus_sdk/testing/data/auth/delete_scope.py

raw
1 import uuid
2
3 from globus_sdk.testing.models import RegisteredResponse, ResponseSet
4
5 SCOPE = {
6 "scope_string": "https://auth.globus.org/scopes/3f33d83f-ec0a-4190-887d-0622e7c4ee9a/manager", # noqa: E501
7 "allows_refresh_token": False,
8 "id": str(uuid.uuid1()),
9 "advertised": False,
10 "required_domains": [],
11 "name": "Client manage scope",
12 "description": "Manage configuration of this client",
13 "client": "3f33d83f-ec0a-4190-887d-0622e7c4ee9a",
14 "dependent_scopes": [],
15 }
16
17 RESPONSES = ResponseSet(
18 default=RegisteredResponse(
19 service="auth",
20 method="DELETE",
21 path=f"/v2/api/scopes/{SCOPE['id']}",
22 json={"scope": SCOPE},
23 metadata={
24 "scope_id": SCOPE["id"],
25 },
26 ),
27 )