mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 00:37:13 +00:00
Fix tests
This commit is contained in:
parent
1c147b5c5f
commit
d83f20f743
@ -1,4 +1,6 @@
|
|||||||
"""Huawei LTE component tests."""
|
"""Huawei LTE component tests."""
|
||||||
|
from unittest.mock import Mock
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from homeassistant.components import huawei_lte
|
from homeassistant.components import huawei_lte
|
||||||
@ -7,7 +9,7 @@ from homeassistant.components import huawei_lte
|
|||||||
@pytest.fixture(autouse=True)
|
@pytest.fixture(autouse=True)
|
||||||
def routerdata():
|
def routerdata():
|
||||||
"""Set up a router data for testing."""
|
"""Set up a router data for testing."""
|
||||||
rd = huawei_lte.RouterData(None)
|
rd = huawei_lte.RouterData(Mock())
|
||||||
rd.device_information = {
|
rd.device_information = {
|
||||||
'SoftwareVersion': '1.0',
|
'SoftwareVersion': '1.0',
|
||||||
'nested': {'foo': 'bar'},
|
'nested': {'foo': 'bar'},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user