diff --git a/tests/components/alexa/test_smart_home.py b/tests/components/alexa/test_smart_home.py index 43d92f1a533d33ac8871ad8cb81112f197a096f6..d502dce7d018ed8da35f0ab538e98899ef0c5361 100644 --- a/tests/components/alexa/test_smart_home.py +++ b/tests/components/alexa/test_smart_home.py @@ -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") diff --git a/tests/components/unifiprotect/test_services.py b/tests/components/unifiprotect/test_services.py index 919af53ef10515760ca96834fd6ac9c02b9e9613..0a90a2d5667f3620f6ccce6d3626d466cd1cef7e 100644 --- a/tests/components/unifiprotect/test_services.py +++ b/tests/components/unifiprotect/test_services.py @@ -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