Improve SmartThings test mocking (#25028)

* Migrate to asynctest

* Simplify mock access

* Use mocks
This commit is contained in:
Andrew Sayre authored and GitHub committed 2019-07-08 22:39:55 -04:00
1 parent 2fbbcafaed
commit a31e49c857
5 files changed
+186 -336

No files matched your search

+1 -1
View File
@@ -40,7 +40,7 @@ async def test_scene_activate(hass, scene):
assert state.attributes['color'] == scene.color
assert state.attributes['location_id'] == scene.location_id
# pylint: disable=protected-access
assert scene._api.execute_scene.call_count == 1 # type: ignore
assert scene.execute.call_count == 1 # type: ignore
async def test_unload_config_entry(hass, scene):