mirror of
https://github.com/home-assistant/core.git
synced 2025-11-16 14:30:22 +00:00
Update ruff to 0.12.0 (#147106)
This commit is contained in:
@@ -39,8 +39,9 @@ async def test_get_integration_logger(
|
||||
@pytest.mark.usefixtures("enable_custom_integrations", "hass")
|
||||
async def test_extract_frame_resolve_module() -> 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
|
||||
from custom_components.test_integration_frame import ( # noqa: PLC0415
|
||||
call_get_integration_frame,
|
||||
)
|
||||
|
||||
integration_frame = call_get_integration_frame()
|
||||
|
||||
@@ -56,8 +57,9 @@ async def test_extract_frame_resolve_module() -> None:
|
||||
@pytest.mark.usefixtures("enable_custom_integrations", "hass")
|
||||
async def test_get_integration_logger_resolve_module() -> 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
|
||||
from custom_components.test_integration_frame import ( # noqa: PLC0415
|
||||
call_get_integration_logger,
|
||||
)
|
||||
|
||||
logger = call_get_integration_logger(__name__)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user