mirror of
https://github.com/esphome/esphome.git
synced 2026-08-28 16:53:28 +00:00
17 lines
676 B
Python
17 lines
676 B
Python
from esphome.components.runtime_image import enable_format
|
|
from esphome.types import ConfigType
|
|
from tests.testing_helpers import ComponentManifestOverride
|
|
|
|
|
|
def override_manifest(manifest: ComponentManifestOverride) -> None:
|
|
# to_code is suppressed in cpptest builds; formats are normally enabled by
|
|
# process_runtime_image_config(). Enable all formats so the format-switch
|
|
# tests have two decoder types and every retained decoder is under test.
|
|
async def to_code_testing(config: ConfigType) -> None:
|
|
enable_format("BMP")
|
|
enable_format("JPEG")
|
|
enable_format("PNG")
|
|
enable_format("QOI")
|
|
|
|
manifest.to_code = to_code_testing
|