Add monkeypatch type hints to switcher_kis tests (#121055)
* Add monkeypatch type hints to switch_kis * Improve
This commit is contained in:
parent
7958c0825e
commit
c9240b8e34
7 changed files with 31 additions and 17 deletions
|
@ -23,7 +23,9 @@ from .consts import DUMMY_PLUG_DEVICE, DUMMY_WATER_HEATER_DEVICE
|
|||
|
||||
|
||||
@pytest.mark.parametrize("mock_bridge", [[DUMMY_WATER_HEATER_DEVICE]], indirect=True)
|
||||
async def test_switch(hass: HomeAssistant, mock_bridge, mock_api, monkeypatch) -> None:
|
||||
async def test_switch(
|
||||
hass: HomeAssistant, mock_bridge, mock_api, monkeypatch: pytest.MonkeyPatch
|
||||
) -> None:
|
||||
"""Test the switch."""
|
||||
await init_integration(hass)
|
||||
assert mock_bridge
|
||||
|
@ -75,7 +77,7 @@ async def test_switch_control_fail(
|
|||
hass: HomeAssistant,
|
||||
mock_bridge,
|
||||
mock_api,
|
||||
monkeypatch,
|
||||
monkeypatch: pytest.MonkeyPatch,
|
||||
caplog: pytest.LogCaptureFixture,
|
||||
) -> None:
|
||||
"""Test switch control fail."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue