Improve SmartThings test mocking (#25028)
* Migrate to asynctest * Simplify mock access * Use mocks
This commit is contained in:
1 parent
2fbbcafaed
commit
a31e49c857
5 files changed
+186
-336
No files matched your search
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user