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:
copilot-swe-agent[bot]
2025-07-31 17:00:46 +00:00
parent 082dc4d0bf
commit 9d0dcdb5bd

View File

@@ -944,7 +944,7 @@ async def test_config_entry_custom_integration(
crd = update_coordinator.DataUpdateCoordinator[int](hass, _LOGGER, name="test")
assert crd.config_entry is None
assert (
"Detected that integration 'my_integration' relies on ContextVar"
"Detected that custom integration 'my_integration' relies on ContextVar"
not in caplog.text
)
@@ -955,7 +955,7 @@ async def test_config_entry_custom_integration(
)
assert crd.config_entry is None
assert (
"Detected that integration 'my_integration' relies on ContextVar"
"Detected that custom integration 'my_integration' relies on ContextVar"
not in caplog.text
)
@@ -966,7 +966,7 @@ async def test_config_entry_custom_integration(
)
assert crd.config_entry is entry
assert (
"Detected that integration 'my_integration' relies on ContextVar"
"Detected that custom integration 'my_integration' relies on ContextVar"
not in caplog.text
)
@@ -978,7 +978,7 @@ async def test_config_entry_custom_integration(
crd = update_coordinator.DataUpdateCoordinator[int](hass, _LOGGER, name="test")
assert crd.config_entry is entry
assert (
"Detected that integration 'my_integration' relies on ContextVar"
"Detected that custom integration 'my_integration' relies on ContextVar"
not in caplog.text
)
@@ -990,7 +990,7 @@ async def test_config_entry_custom_integration(
)
assert crd.config_entry is another_entry
assert (
"Detected that integration 'my_integration' relies on ContextVar"
"Detected that custom integration 'my_integration' relies on ContextVar"
not in caplog.text
)