Use HTTP_INTERNAL_SERVER_ERROR constant (#33832)
This commit is contained in:
parent
15ab63a4c2
commit
fb8f8133a0
27 changed files with 122 additions and 69 deletions
|
@ -11,6 +11,7 @@ from homeassistant.components.media_player.const import (
|
|||
SERVICE_PLAY_MEDIA,
|
||||
)
|
||||
import homeassistant.components.tts as tts
|
||||
from homeassistant.const import HTTP_INTERNAL_SERVER_ERROR
|
||||
from homeassistant.setup import setup_component
|
||||
|
||||
from tests.common import assert_setup_component, get_test_home_assistant, mock_service
|
||||
|
@ -122,7 +123,7 @@ class TestTTSMaryTTSPlatform:
|
|||
conn = Mock()
|
||||
response = Mock()
|
||||
conn.getresponse.return_value = response
|
||||
response.status = 500
|
||||
response.status = HTTP_INTERNAL_SERVER_ERROR
|
||||
response.reason = "test"
|
||||
response.readline.return_value = "content"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue