Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions tests/components/tts/test_init.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""The tests for the TTS component."""
import ctypes
import os
from unittest.mock import PropertyMock, patch

import pytest
Expand Down Expand Up @@ -310,12 +309,11 @@ async def test_setup_component_and_test_with_service_options_def(hass, empty_cac
] == "{}/api/tts_proxy/42f18378fd4393d18c8dd11d03fa9563c1e54491_de_{}_demo.mp3".format(
hass.config.api.base_url, opt_hash
)
assert os.path.isfile(
os.path.join(
empty_cache_dir,
f"42f18378fd4393d18c8dd11d03fa9563c1e54491_de_{opt_hash}_demo.mp3",
)
)
await hass.async_block_till_done()
assert (
empty_cache_dir
/ f"42f18378fd4393d18c8dd11d03fa9563c1e54491_de_{opt_hash}_demo.mp3"
).is_file()


async def test_setup_component_and_test_service_with_service_options_wrong(
Expand Down