From d54cb49f3284ee1f7013b35073b6896340deab7e Mon Sep 17 00:00:00 2001 From: Allen Porter Date: Fri, 8 Apr 2022 08:46:51 -0700 Subject: [PATCH] Remove "XXX" from calendar tests and implement real test (#69677) * Remove "XXX" from calendar tests and implement real test Remove a placeholder that was accidentally commited in the calendar tests, and replace with a real test. * Remove stale comment --- tests/components/google/test_init.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/components/google/test_init.py b/tests/components/google/test_init.py index 49e10d137b6..82d7f53fe4f 100644 --- a/tests/components/google/test_init.py +++ b/tests/components/google/test_init.py @@ -114,10 +114,12 @@ async def test_invalid_calendar_yaml( setup_config_entry: MockConfigEntry, ) -> None: """Test setup with missing entity id fields fails to setup the config entry.""" - # Integration fails to setup assert await component_setup() - # XXX No config entries + entries = hass.config_entries.async_entries(DOMAIN) + assert len(entries) == 1 + entry = entries[0] + assert entry.state is ConfigEntryState.SETUP_ERROR assert not hass.states.get(TEST_YAML_ENTITY)