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
|
@ -1,6 +1,8 @@
|
|||
"""The tests for the VoiceRSS speech platform."""
|
||||
|
||||
from http import HTTPStatus
|
||||
from pathlib import Path
|
||||
from unittest.mock import MagicMock
|
||||
|
||||
import pytest
|
||||
|
||||
|
@ -29,12 +31,12 @@ FORM_DATA = {
|
|||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def tts_mutagen_mock_fixture_autouse(tts_mutagen_mock):
|
||||
def tts_mutagen_mock_fixture_autouse(tts_mutagen_mock: MagicMock) -> None:
|
||||
"""Mock writing tags."""
|
||||
|
||||
|
||||
@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