mirror of
https://github.com/home-assistant/core.git
synced 2025-11-13 21:10:25 +00:00
Remove cloud assist pipeline setup from cloud client (#92056)
This commit is contained in:
@@ -48,8 +48,9 @@ async def test_prefs_default_voice(
|
||||
"""Test cloud provider uses the preferences."""
|
||||
assert cloud_prefs.tts_default_voice == ("en-US", "female")
|
||||
|
||||
tts_info = {"platform_loaded": Mock()}
|
||||
provider_pref = await tts.async_get_engine(
|
||||
Mock(data={const.DOMAIN: cloud_with_prefs}), None, {}
|
||||
Mock(data={const.DOMAIN: cloud_with_prefs}), None, tts_info
|
||||
)
|
||||
provider_conf = await tts.async_get_engine(
|
||||
Mock(data={const.DOMAIN: cloud_with_prefs}),
|
||||
@@ -73,8 +74,9 @@ async def test_prefs_default_voice(
|
||||
|
||||
async def test_provider_properties(cloud_with_prefs) -> None:
|
||||
"""Test cloud provider."""
|
||||
tts_info = {"platform_loaded": Mock()}
|
||||
provider = await tts.async_get_engine(
|
||||
Mock(data={const.DOMAIN: cloud_with_prefs}), None, {}
|
||||
Mock(data={const.DOMAIN: cloud_with_prefs}), None, tts_info
|
||||
)
|
||||
assert provider.supported_options == ["gender", "voice", "audio_output"]
|
||||
assert "nl-NL" in provider.supported_languages
|
||||
@@ -85,8 +87,9 @@ async def test_provider_properties(cloud_with_prefs) -> None:
|
||||
|
||||
async def test_get_tts_audio(cloud_with_prefs) -> None:
|
||||
"""Test cloud provider."""
|
||||
tts_info = {"platform_loaded": Mock()}
|
||||
provider = await tts.async_get_engine(
|
||||
Mock(data={const.DOMAIN: cloud_with_prefs}), None, {}
|
||||
Mock(data={const.DOMAIN: cloud_with_prefs}), None, tts_info
|
||||
)
|
||||
assert provider.supported_options == ["gender", "voice", "audio_output"]
|
||||
assert "nl-NL" in provider.supported_languages
|
||||
|
||||
Reference in New Issue
Block a user