Add type hints for TTS test fixtures (#118704)

This commit is contained in:
epenet 2024-06-03 17:43:18 +02:00 committed by GitHub
parent 32d4431f9b
commit f178467b0e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 72 additions and 42 deletions

View file

@ -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]",
}