MCPcopy Create free account
hub / github.com/Azure-Samples/rag-postgres-openai-python / get_token

Method get_token

tests/mocks.py:7–15  ·  view source on GitHub ↗
(
        self,
        *scopes: str,
        claims: Optional[str] = None,
        tenant_id: Optional[str] = None,
        enable_cae: bool = False,
        **kwargs: Any,
    )

Source from the content-addressed store, hash-verified

5
6class MockAzureCredential(TokenCredential):
7 def get_token(
8 self,
9 *scopes: str,
10 claims: Optional[str] = None,
11 tenant_id: Optional[str] = None,
12 enable_cae: bool = False,
13 **kwargs: Any,
14 ) -> AccessToken:
15 return AccessToken("", 9999999999)
16
17
18class MockAzureCredentialExpired(TokenCredential):

Callers 2

Calls

no outgoing calls

Tested by 1