mirror of
https://github.com/home-assistant/supervisor.git
synced 2026-05-08 17:08:36 +01:00
9479672b88
* Create evaluation modules * Use sys_core
22 lines
555 B
Python
22 lines
555 B
Python
"""Test evaluation base."""
|
|
# pylint: disable=import-error
|
|
import pytest
|
|
|
|
from supervisor.coresys import CoreSys
|
|
from supervisor.resolution.evaluations.base import EvaluateBase
|
|
|
|
|
|
async def test_evaluation_base(coresys: CoreSys):
|
|
"""Test evaluation base."""
|
|
base = EvaluateBase(coresys)
|
|
assert not base.states
|
|
|
|
with pytest.raises(NotImplementedError):
|
|
await base.evaluate()
|
|
|
|
with pytest.raises(NotImplementedError):
|
|
assert not base.on_failure
|
|
|
|
with pytest.raises(NotImplementedError):
|
|
assert not base.reason
|