Add missing argument type to core tests (#119667)

This commit is contained in:
epenet 2024-06-14 08:42:01 +02:00 committed by GitHub
parent f3ce562847
commit 9f41133bbc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 23 additions and 17 deletions

View file

@ -32,9 +32,8 @@ async def test_get_integration_logger(
assert logger.name == "homeassistant.components.hue"
async def test_extract_frame_resolve_module(
hass: HomeAssistant, enable_custom_integrations
) -> None:
@pytest.mark.usefixtures("enable_custom_integrations")
async def test_extract_frame_resolve_module(hass: HomeAssistant) -> None:
"""Test extracting the current frame from integration context."""
# pylint: disable-next=import-outside-toplevel
from custom_components.test_integration_frame import call_get_integration_frame
@ -50,9 +49,8 @@ async def test_extract_frame_resolve_module(
)
async def test_get_integration_logger_resolve_module(
hass: HomeAssistant, enable_custom_integrations
) -> None:
@pytest.mark.usefixtures("enable_custom_integrations")
async def test_get_integration_logger_resolve_module(hass: HomeAssistant) -> None:
"""Test getting the logger from integration context."""
# pylint: disable-next=import-outside-toplevel
from custom_components.test_integration_frame import call_get_integration_logger