From a458128b7545c14bf3b8cc17079467741ccf9ddb Mon Sep 17 00:00:00 2001 From: G Johansson Date: Wed, 27 Aug 2025 18:03:01 +0000 Subject: [PATCH] Remove not needed test --- tests/components/google/test_init.py | 45 ---------------------------- 1 file changed, 45 deletions(-) diff --git a/tests/components/google/test_init.py b/tests/components/google/test_init.py index 48cb1806bf1..02f9e1b48bd 100644 --- a/tests/components/google/test_init.py +++ b/tests/components/google/test_init.py @@ -814,51 +814,6 @@ async def test_calendar_yaml_update( assert not hass.states.get(TEST_YAML_ENTITY) -async def test_update_will_reload( - hass: HomeAssistant, - component_setup: ComponentSetup, - mock_calendars_list: ApiResult, - test_api_calendar: dict[str, Any], - mock_events_list: ApiResult, - config_entry: MockConfigEntry, -) -> None: - """Test updating config entry options will trigger a reload.""" - mock_calendars_list({"items": [test_api_calendar]}) - mock_events_list({}) - await component_setup() - assert config_entry.state is ConfigEntryState.LOADED - assert config_entry.options == {} # read_write is default - - with patch( - "homeassistant.config_entries.ConfigEntries.async_reload", - return_value=None, - ) as mock_reload: - # No-op does not reload - hass.config_entries.async_update_entry( - config_entry, options={CONF_CALENDAR_ACCESS: "read_write"} - ) - await hass.async_block_till_done() - mock_reload.assert_not_called() - - # Data change does not trigger reload - hass.config_entries.async_update_entry( - config_entry, - data={ - **config_entry.data, - "example": "field", - }, - ) - await hass.async_block_till_done() - mock_reload.assert_not_called() - - # Reload when options changed - hass.config_entries.async_update_entry( - config_entry, options={CONF_CALENDAR_ACCESS: "read_only"} - ) - await hass.async_block_till_done() - mock_reload.assert_called_once() - - @pytest.mark.parametrize("config_entry_unique_id", [None]) async def test_assign_unique_id( hass: HomeAssistant,