mirror of
https://github.com/home-assistant/core.git
synced 2025-11-15 14:00:24 +00:00
Add return type hints in tests (k-z) (#118942)
This commit is contained in:
@@ -131,7 +131,7 @@ async def test_commands(
|
||||
matrix_bot: MatrixBot,
|
||||
command_events: list[Event],
|
||||
command_params: CommandTestParameters,
|
||||
):
|
||||
) -> None:
|
||||
"""Test that the configured commands are used correctly."""
|
||||
room = MatrixRoom(room_id=command_params.room_id, own_user_id=matrix_bot._mx_id)
|
||||
|
||||
@@ -160,7 +160,7 @@ async def test_non_commands(
|
||||
matrix_bot: MatrixBot,
|
||||
command_events: list[Event],
|
||||
command_params: CommandTestParameters,
|
||||
):
|
||||
) -> None:
|
||||
"""Test that normal/non-qualifying messages don't wrongly trigger commands."""
|
||||
room = MatrixRoom(room_id=command_params.room_id, own_user_id=matrix_bot._mx_id)
|
||||
|
||||
@@ -173,7 +173,7 @@ async def test_non_commands(
|
||||
assert len(command_events) == 0
|
||||
|
||||
|
||||
async def test_commands_parsing(hass: HomeAssistant, matrix_bot: MatrixBot):
|
||||
async def test_commands_parsing(hass: HomeAssistant, matrix_bot: MatrixBot) -> None:
|
||||
"""Test that the configured commands were parsed correctly."""
|
||||
|
||||
await hass.async_start()
|
||||
|
||||
Reference in New Issue
Block a user