mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 10:59:40 +00:00
Add LogCaptureFixture type hints in tests (#118372)
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
"""Test the send_message service."""
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.matrix import (
|
||||
ATTR_FORMAT,
|
||||
ATTR_IMAGES,
|
||||
@@ -14,7 +16,11 @@ from tests.components.matrix.conftest import TEST_BAD_ROOM, TEST_JOINABLE_ROOMS
|
||||
|
||||
|
||||
async def test_send_message(
|
||||
hass: HomeAssistant, matrix_bot: MatrixBot, image_path, matrix_events, caplog
|
||||
hass: HomeAssistant,
|
||||
matrix_bot: MatrixBot,
|
||||
image_path,
|
||||
matrix_events,
|
||||
caplog: pytest.LogCaptureFixture,
|
||||
):
|
||||
"""Test the send_message service."""
|
||||
|
||||
@@ -55,7 +61,10 @@ async def test_send_message(
|
||||
|
||||
|
||||
async def test_unsendable_message(
|
||||
hass: HomeAssistant, matrix_bot: MatrixBot, matrix_events, caplog
|
||||
hass: HomeAssistant,
|
||||
matrix_bot: MatrixBot,
|
||||
matrix_events,
|
||||
caplog: pytest.LogCaptureFixture,
|
||||
):
|
||||
"""Test the send_message service with an invalid room."""
|
||||
assert len(matrix_events) == 0
|
||||
|
||||
Reference in New Issue
Block a user