mirror of
https://github.com/home-assistant/supervisor.git
synced 2026-09-22 17:52:48 +01:00
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
|