Fix use-implicit-booleaness-not-len warnings in tests (#119407)

This commit is contained in:
epenet 2024-06-11 17:57:58 +02:00 committed by GitHub
parent 7384140a60
commit 6bb9011db3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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")

View File

@ -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