mirror of
https://github.com/home-assistant/core.git
synced 2026-08-06 13:26:29 +01:00
13 lines
445 B
Python
13 lines
445 B
Python
"""Tests for the Monzo API."""
|
|
|
|
from homeassistant.components.monzo.api import MonzoAPI
|
|
from homeassistant.core import HomeAssistant
|
|
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
|
|
|
|
|
async def test_access_token(hass: HomeAssistant) -> None:
|
|
"""Test returning a static access token."""
|
|
api = MonzoAPI(async_get_clientsession(hass), "access-token")
|
|
|
|
assert await api.async_get_access_token() == "access-token"
|