mirror of
https://github.com/esphome/esphome.git
synced 2026-10-08 12:04:03 +00:00
15 lines
484 B
Python
15 lines
484 B
Python
"""LVGL rejects ESP8266 at validation time."""
|
|
|
|
import pytest
|
|
|
|
from esphome.components import lvgl
|
|
from esphome.config_validation import Invalid
|
|
from esphome.const import PlatformFramework
|
|
from tests.component_tests.types import SetCoreConfigCallable
|
|
|
|
|
|
def test_esp8266_is_rejected(set_core_config: SetCoreConfigCallable) -> None:
|
|
set_core_config(PlatformFramework.ESP8266_ARDUINO)
|
|
with pytest.raises(Invalid, match="not supported on ESP8266"):
|
|
lvgl.CONFIG_SCHEMA({})
|