mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fix last flaky TTS test (#33849)
This commit is contained in:
parent
7cc683658b
commit
bdb998bdb3
@ -1,6 +1,5 @@
|
|||||||
"""The tests for the TTS component."""
|
"""The tests for the TTS component."""
|
||||||
import ctypes
|
import ctypes
|
||||||
import os
|
|
||||||
from unittest.mock import PropertyMock, patch
|
from unittest.mock import PropertyMock, patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
@ -311,12 +310,11 @@ async def test_setup_component_and_test_with_service_options_def(hass, empty_cac
|
|||||||
] == "{}/api/tts_proxy/42f18378fd4393d18c8dd11d03fa9563c1e54491_de_{}_demo.mp3".format(
|
] == "{}/api/tts_proxy/42f18378fd4393d18c8dd11d03fa9563c1e54491_de_{}_demo.mp3".format(
|
||||||
hass.config.api.base_url, opt_hash
|
hass.config.api.base_url, opt_hash
|
||||||
)
|
)
|
||||||
assert os.path.isfile(
|
await hass.async_block_till_done()
|
||||||
os.path.join(
|
assert (
|
||||||
empty_cache_dir,
|
empty_cache_dir
|
||||||
f"42f18378fd4393d18c8dd11d03fa9563c1e54491_de_{opt_hash}_demo.mp3",
|
/ f"42f18378fd4393d18c8dd11d03fa9563c1e54491_de_{opt_hash}_demo.mp3"
|
||||||
)
|
).is_file()
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
async def test_setup_component_and_test_service_with_service_options_wrong(
|
async def test_setup_component_and_test_service_with_service_options_wrong(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user