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
This commit is contained in:
Allen Porter 2022-04-08 08:46:51 -07:00 committed by GitHub
parent c70c9ac341
commit d54cb49f32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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