mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-12-21 12:10:25 +00:00
Fix warnings in our test suite (#1246)
Co-authored-by: Steven B <51370195+sdb9696@users.noreply.github.com>
This commit is contained in:
@@ -45,10 +45,8 @@ async def test_update_no_device_info(dev: SmartDevice, mocker: MockerFixture):
|
||||
"get_device_time": {},
|
||||
}
|
||||
msg = f"get_device_info not found in {mock_response} for device 127.0.0.123"
|
||||
with (
|
||||
mocker.patch.object(dev.protocol, "query", return_value=mock_response),
|
||||
pytest.raises(KasaException, match=msg),
|
||||
):
|
||||
mocker.patch.object(dev.protocol, "query", return_value=mock_response)
|
||||
with pytest.raises(KasaException, match=msg):
|
||||
await dev.update()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user