mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-12-24 20:35:55 +00:00
Add resolution manager and unsupported flags (#2124)
* Add unsupported reason flags * Restore test_network.py * Add Resolution manager object * fix import
This commit is contained in:
14
tests/resolution/test_resolution_manager.py
Normal file
14
tests/resolution/test_resolution_manager.py
Normal file
@@ -0,0 +1,14 @@
|
||||
"""Tests for resolution manager."""
|
||||
|
||||
|
||||
from supervisor.const import UnsupportedReason
|
||||
from supervisor.coresys import CoreSys
|
||||
|
||||
|
||||
def test_properies(coresys: CoreSys):
|
||||
"""Test resolution manager properties."""
|
||||
|
||||
assert coresys.core.supported
|
||||
|
||||
coresys.resolution.unsupported = UnsupportedReason.OS
|
||||
assert not coresys.core.supported
|
||||
Reference in New Issue
Block a user