Remove cloud assist pipeline setup from cloud client (#92056)
This commit is contained in:
parent
6b931b208f
commit
ed737f306b
9 changed files with 119 additions and 133 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue