Skip to content

Commit

Permalink
Minor improvements of otbr tests (#124224)
Browse files Browse the repository at this point in the history
  • Loading branch information
emontnemery authored Aug 19, 2024
1 parent b53ae88 commit f2d41bd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/components/otbr/test_silabs_multiprotocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
async def test_async_change_channel(
hass: HomeAssistant, otbr_config_entry_multipan
) -> None:
"""Test test_async_change_channel."""
"""Test async_change_channel."""

store = await dataset_store.async_get_store(hass)
assert len(store.datasets) == 1
Expand Down Expand Up @@ -63,7 +63,7 @@ async def test_async_change_channel(
async def test_async_change_channel_no_pending(
hass: HomeAssistant, otbr_config_entry_multipan
) -> None:
"""Test test_async_change_channel when the pending dataset already expired."""
"""Test async_change_channel when the pending dataset already expired."""

store = await dataset_store.async_get_store(hass)
assert len(store.datasets) == 1
Expand Down Expand Up @@ -95,7 +95,7 @@ async def test_async_change_channel_no_pending(
async def test_async_change_channel_no_update(
hass: HomeAssistant, otbr_config_entry_multipan
) -> None:
"""Test test_async_change_channel when we didn't get a dataset from the OTBR."""
"""Test async_change_channel when we didn't get a dataset from the OTBR."""

store = await dataset_store.async_get_store(hass)
assert len(store.datasets) == 1
Expand Down Expand Up @@ -169,7 +169,7 @@ async def test_async_get_channel_no_otbr(hass: HomeAssistant) -> None:
"""Test test_async_get_channel when otbr is not configured."""

with patch("python_otbr_api.OTBR.get_active_dataset") as mock_get_active_dataset:
await otbr_silabs_multiprotocol.async_get_channel(hass)
assert await otbr_silabs_multiprotocol.async_get_channel(hass) is None
mock_get_active_dataset.assert_not_awaited()


Expand Down

0 comments on commit f2d41bd

Please sign in to comment.