Fix tests
This commit is contained in:
parent
1c147b5c5f
commit
d83f20f743
1 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,6 @@
|
|||
"""Huawei LTE component tests."""
|
||||
from unittest.mock import Mock
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.components import huawei_lte
|
||||
|
@ -7,7 +9,7 @@ from homeassistant.components import huawei_lte
|
|||
@pytest.fixture(autouse=True)
|
||||
def routerdata():
|
||||
"""Set up a router data for testing."""
|
||||
rd = huawei_lte.RouterData(None)
|
||||
rd = huawei_lte.RouterData(Mock())
|
||||
rd.device_information = {
|
||||
'SoftwareVersion': '1.0',
|
||||
'nested': {'foo': 'bar'},
|
||||
|
|
Loading…
Add table
Reference in a new issue