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
|
@ -5,6 +5,7 @@ import pytest
|
|||
|
||||
from homeassistant.bootstrap import async_setup_component
|
||||
import homeassistant.components.mailbox as mailbox
|
||||
from homeassistant.const import HTTP_INTERNAL_SERVER_ERROR
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
@ -90,7 +91,7 @@ async def test_get_media_from_invalid_msgid(mock_http_client):
|
|||
url = "/api/mailbox/media/DemoMailbox/%s" % (msgsha)
|
||||
|
||||
req = await mock_http_client.get(url)
|
||||
assert req.status == 500
|
||||
assert req.status == HTTP_INTERNAL_SERVER_ERROR
|
||||
|
||||
|
||||
async def test_delete_from_invalid_mailbox(mock_http_client):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue