mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Fix use-implicit-booleaness-not-len warnings in tests (#119407)
This commit is contained in:
parent
7384140a60
commit
6bb9011db3
@ -5643,6 +5643,6 @@ async def test_alexa_config(
|
||||
with patch.object(test_config, "_auth", AsyncMock()):
|
||||
test_config._auth.async_invalidate_access_token = MagicMock()
|
||||
test_config.async_invalidate_access_token()
|
||||
assert len(test_config._auth.async_invalidate_access_token.mock_calls)
|
||||
assert len(test_config._auth.async_invalidate_access_token.mock_calls) == 1
|
||||
await test_config.async_accept_grant("grant_code")
|
||||
test_config._auth.async_do_auth.assert_called_once_with("grant_code")
|
||||
|
@ -233,4 +233,4 @@ async def test_remove_privacy_zone(
|
||||
blocking=True,
|
||||
)
|
||||
ufp.api.update_device.assert_called()
|
||||
assert not len(doorbell.privacy_zones)
|
||||
assert not doorbell.privacy_zones
|
||||
|
Loading…
x
Reference in New Issue
Block a user