mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
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:
parent
c70c9ac341
commit
d54cb49f32
@ -114,10 +114,12 @@ async def test_invalid_calendar_yaml(
|
|||||||
setup_config_entry: MockConfigEntry,
|
setup_config_entry: MockConfigEntry,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Test setup with missing entity id fields fails to setup the config entry."""
|
"""Test setup with missing entity id fields fails to setup the config entry."""
|
||||||
# Integration fails to setup
|
|
||||||
assert await component_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)
|
assert not hass.states.get(TEST_YAML_ENTITY)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user