tests/components/google/conftest.py
def creds(
    token_scopes: list[str], token_expiry: datetime.datetime
) -> OAuth2Credentials:
    """Fixture that defines creds used in the test."""
    return OAuth2Credentials(
        access_token="ACCESS_TOKEN",
        client_id="client-id",
        client_secret="client-secret",
        refresh_token="REFRESH_TOKEN",
        token_expiry=token_expiry,
        token_uri="http://example.com",
        user_agent="n/a",
        scopes=token_scopes,
    )
Fixture that defines creds used in the test.
Fixture that defines creds used in the test.
Fixture that defines creds used in the test .
def creds(
    token_scopes: list[str], token_expiry: datetime.datetime
) -> OAuth2Credentials:
    return OAuth2Credentials(
        access_token="ACCESS_TOKEN",
        client_id="client-id",
        client_secret="client-secret",
        refresh_token="REFRESH_TOKEN",
        token_expiry=token_expiry,
        token_uri="http://example.com",
        user_agent="n/a",
        scopes=token_scopes,
    )
def creds ( token_scopes : list [ str ] , token_expiry : datetime . datetime ) -> OAuth2Credentials : return OAuth2Credentials ( access_token = "ACCESS_TOKEN" , client_id = "client-id" , client_secret = "client-secret" , refresh_token = "REFRESH_TOKEN" , token_expiry = token_expiry , token_uri = "http://example.com" , user_agent = "n/a" , scopes = token_scopes , )
Fixture that defines creds used in the test.
Fixture that defines creds used in the test .
"""Fixture that defines creds used in the test."""
token_scopes
list[str]
token_expiry
datetime.datetime