From 9d0dcdb5bdfd62bf3ee6fffca74b7fca56e42881 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 31 Jul 2025 17:00:46 +0000 Subject: [PATCH] Fix test assertions to check for correct custom integration message format Co-authored-by: mib1185 <35783820+mib1185@users.noreply.github.com> --- tests/helpers/test_update_coordinator.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/helpers/test_update_coordinator.py b/tests/helpers/test_update_coordinator.py index b4216a3fc6d..d10d9e52023 100644 --- a/tests/helpers/test_update_coordinator.py +++ b/tests/helpers/test_update_coordinator.py @@ -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 )