Add type hints for TTS test fixtures (#118704)
This commit is contained in:
parent
32d4431f9b
commit
f178467b0e
16 changed files with 72 additions and 42 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
from http import HTTPStatus
|
||||
import io
|
||||
from pathlib import Path
|
||||
from unittest.mock import patch
|
||||
import wave
|
||||
|
||||
|
@ -33,7 +34,7 @@ def get_empty_wav() -> bytes:
|
|||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def mock_tts_cache_dir_autouse(mock_tts_cache_dir):
|
||||
def mock_tts_cache_dir_autouse(mock_tts_cache_dir: Path) -> Path:
|
||||
"""Mock the TTS cache dir with empty dir."""
|
||||
return mock_tts_cache_dir
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue