hass-core/tests/components/cloud/test_tts.py
Klaas Schoute b358103b58
Update cloud integration to 0.38.0 ()
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-11-17 16:31:59 +01:00

15 lines
424 B
Python

"""Tests for cloud tts."""
from homeassistant.components.cloud import tts
def test_schema():
"""Test schema."""
assert "nl-NL" in tts.SUPPORT_LANGUAGES
processed = tts.PLATFORM_SCHEMA({"platform": "cloud", "language": "nl-NL"})
assert processed["gender"] == "female"
# Should not raise
processed = tts.PLATFORM_SCHEMA(
{"platform": "cloud", "language": "nl-NL", "gender": "female"}
)