mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-12-21 20:20:11 +00:00
Fix test framework running against real devices (#1235)
This commit is contained in:
@@ -26,6 +26,7 @@ from .conftest import (
|
||||
|
||||
|
||||
@device_smart
|
||||
@pytest.mark.requires_dummy()
|
||||
async def test_try_get_response(dev: SmartDevice, caplog):
|
||||
mock_response: dict = {
|
||||
"get_device_info": SmartErrorCode.PARAMS_ERROR,
|
||||
@@ -37,6 +38,7 @@ async def test_try_get_response(dev: SmartDevice, caplog):
|
||||
|
||||
|
||||
@device_smart
|
||||
@pytest.mark.requires_dummy()
|
||||
async def test_update_no_device_info(dev: SmartDevice, mocker: MockerFixture):
|
||||
mock_response: dict = {
|
||||
"get_device_usage": {},
|
||||
|
||||
Reference in New Issue
Block a user