mirror of
https://github.com/home-assistant/core.git
synced 2025-09-04 04:11:37 +02:00
Fix test assertions to check for correct custom integration message format
Co-authored-by: mib1185 <35783820+mib1185@users.noreply.github.com>
This commit is contained in:
@@ -944,7 +944,7 @@ async def test_config_entry_custom_integration(
|
|||||||
crd = update_coordinator.DataUpdateCoordinator[int](hass, _LOGGER, name="test")
|
crd = update_coordinator.DataUpdateCoordinator[int](hass, _LOGGER, name="test")
|
||||||
assert crd.config_entry is None
|
assert crd.config_entry is None
|
||||||
assert (
|
assert (
|
||||||
"Detected that integration 'my_integration' relies on ContextVar"
|
"Detected that custom integration 'my_integration' relies on ContextVar"
|
||||||
not in caplog.text
|
not in caplog.text
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -955,7 +955,7 @@ async def test_config_entry_custom_integration(
|
|||||||
)
|
)
|
||||||
assert crd.config_entry is None
|
assert crd.config_entry is None
|
||||||
assert (
|
assert (
|
||||||
"Detected that integration 'my_integration' relies on ContextVar"
|
"Detected that custom integration 'my_integration' relies on ContextVar"
|
||||||
not in caplog.text
|
not in caplog.text
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -966,7 +966,7 @@ async def test_config_entry_custom_integration(
|
|||||||
)
|
)
|
||||||
assert crd.config_entry is entry
|
assert crd.config_entry is entry
|
||||||
assert (
|
assert (
|
||||||
"Detected that integration 'my_integration' relies on ContextVar"
|
"Detected that custom integration 'my_integration' relies on ContextVar"
|
||||||
not in caplog.text
|
not in caplog.text
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -978,7 +978,7 @@ async def test_config_entry_custom_integration(
|
|||||||
crd = update_coordinator.DataUpdateCoordinator[int](hass, _LOGGER, name="test")
|
crd = update_coordinator.DataUpdateCoordinator[int](hass, _LOGGER, name="test")
|
||||||
assert crd.config_entry is entry
|
assert crd.config_entry is entry
|
||||||
assert (
|
assert (
|
||||||
"Detected that integration 'my_integration' relies on ContextVar"
|
"Detected that custom integration 'my_integration' relies on ContextVar"
|
||||||
not in caplog.text
|
not in caplog.text
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -990,7 +990,7 @@ async def test_config_entry_custom_integration(
|
|||||||
)
|
)
|
||||||
assert crd.config_entry is another_entry
|
assert crd.config_entry is another_entry
|
||||||
assert (
|
assert (
|
||||||
"Detected that integration 'my_integration' relies on ContextVar"
|
"Detected that custom integration 'my_integration' relies on ContextVar"
|
||||||
not in caplog.text
|
not in caplog.text
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user