tests/components/google/conftest.py
def token_expiry() -> datetime.datetime:
    """Expiration time for credentials used in the test."""
    # OAuth library returns an offset-naive timestamp
    return datetime.datetime.fromtimestamp(
        datetime.datetime.utcnow().timestamp()
    ) + datetime.timedelta(hours=1)
Expiration time for credentials used in the test.
Expiration time for credentials used in the test.
Expiration time for credentials used in the test .
def token_expiry() -> datetime.datetime:
    return datetime.datetime.fromtimestamp(
        datetime.datetime.utcnow().timestamp()
    ) + datetime.timedelta(hours=1)
def token_expiry ( ) -> datetime . datetime : return datetime . datetime . fromtimestamp ( datetime . datetime . utcnow ( ) . timestamp ( ) ) + datetime . timedelta ( hours = 1 )
Expiration time for credentials used in the test.
Expiration time for credentials used in the test .
"""Expiration time for credentials used in the test.""" # OAuth library returns an offset-naive timestamp