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
|
@ -130,6 +130,7 @@ _TEST_FIXTURES: dict[str, list[str] | str] = {
|
|||
"hass_supervisor_access_token": "str",
|
||||
"hass_supervisor_user": "MockUser",
|
||||
"hass_ws_client": "WebSocketGenerator",
|
||||
"init_tts_cache_dir_side_effect": "Any",
|
||||
"issue_registry": "IssueRegistry",
|
||||
"legacy_auth": "LegacyApiPasswordAuthProvider",
|
||||
"local_auth": "HassAuthProvider",
|
||||
|
@ -141,6 +142,9 @@ _TEST_FIXTURES: dict[str, list[str] | str] = {
|
|||
"mock_get_source_ip": "_patch",
|
||||
"mock_hass_config": "None",
|
||||
"mock_hass_config_yaml": "None",
|
||||
"mock_tts_cache_dir": "Path",
|
||||
"mock_tts_get_cache_files": "MagicMock",
|
||||
"mock_tts_init_cache_dir": "MagicMock",
|
||||
"mock_zeroconf": "MagicMock",
|
||||
"mqtt_client_mock": "MqttMockPahoClient",
|
||||
"mqtt_mock": "MqttMockHAClient",
|
||||
|
@ -153,6 +157,7 @@ _TEST_FIXTURES: dict[str, list[str] | str] = {
|
|||
"stub_blueprint_populate": "None",
|
||||
"tmp_path": "Path",
|
||||
"tmpdir": "py.path.local",
|
||||
"tts_mutagen_mock": "MagicMock",
|
||||
"unused_tcp_port_factory": "Callable[[], int]",
|
||||
"unused_udp_port_factory": "Callable[[], int]",
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue