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:
gadgetmobile authored and GitHub committed 2020-05-10 12:22:26 +02:00
1 parent b4142fc7ee
commit 9e3a8899c8
4 files changed
+73 -28

No files matched your search

+2 -2
View File
@@ -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)