Move fixtures to decorators in core tests (#119675)

This commit is contained in:
epenet 2024-06-14 13:32:42 +02:00 committed by GitHub
parent b80f7185b2
commit 01be5d5f6b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 80 additions and 109 deletions

View file

@ -1071,9 +1071,8 @@ async def test_check_ha_config_file_wrong(mock_check, hass: HomeAssistant) -> No
}
],
)
async def test_async_hass_config_yaml_merge(
merge_log_err, hass: HomeAssistant, mock_hass_config: None
) -> None:
@pytest.mark.usefixtures("mock_hass_config")
async def test_async_hass_config_yaml_merge(merge_log_err, hass: HomeAssistant) -> None:
"""Test merge during async config reload."""
conf = await config_util.async_hass_config_yaml(hass)