Increase coverage and cleanup BleBox cover (#35369)
* increase coverage and cleanup BleBox cover * test entity properites via the `state` property * properly test entity properities * properly mock io call
This commit is contained in:
1 parent
b4142fc7ee
commit
9e3a8899c8
4 files changed
+73
-28
No files matched your search
@@ -70,8 +70,8 @@ def config_fixture():
|
||||
return {DOMAIN: {CONF_HOST: "172.100.123.4", CONF_PORT: 80}}
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def wrapper(request):
|
||||
@pytest.fixture(name="feature")
|
||||
def feature(request):
|
||||
"""Return an entity wrapper from given fixture name."""
|
||||
return request.getfixturevalue(request.param)
|
||||
|
||||
|
||||
Reference in new issue
Block a user