Skip to content

Commit f5a0bb4

Browse files
committed
chore: fix lint errors in test_device_manager.py
1 parent 63e63d5 commit f5a0bb4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/devices/test_device_manager.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,3 +362,15 @@ async def test_diagnostics_collection(home_data: HomeData) -> None:
362362
assert diagnostics.get("fetch_home_data") == 1
363363

364364
await device_manager.close()
365+
366+
367+
@pytest.mark.parametrize(
368+
("channel_exception"),
369+
[
370+
Exception("Unexpected error"),
371+
],
372+
)
373+
async def test_start_connect_unexpected_error(home_data: HomeData, channel_failure: Mock, mock_sleep: Mock) -> None:
374+
"""Test that some unexpected errors from start_connect are propagated."""
375+
with pytest.raises(Exception, match="Unexpected error"):
376+
await create_device_manager(USER_PARAMS)

0 commit comments

Comments
 (0)