mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-05-08 20:08:39 +00:00

* Add unsupported reason flags * Restore test_network.py * Add Resolution manager object * fix import
14 lines
430 B
Python
14 lines
430 B
Python
"""Test Resolution API."""
|
|
import pytest
|
|
|
|
from supervisor.const import ATTR_UNSUPPORTED, UnsupportedReason
|
|
|
|
|
|
@pytest.mark.asyncio
|
|
async def test_api_resolution_base(coresys, api_client):
|
|
"""Test resolution manager api."""
|
|
coresys.resolution.unsupported = UnsupportedReason.OS
|
|
resp = await api_client.get("/resolution")
|
|
result = await resp.json()
|
|
assert UnsupportedReason.OS in result["data"][ATTR_UNSUPPORTED]
|