Skip to content

Commit 8f22f4d

Browse files
committed
style: sort test imports with ruff
1 parent 8a44dc7 commit 8f22f4d

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎tests/unit/test_instance.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,7 @@ async def test_probe_connection_postgres_startup_packet(
398398
) -> None:
399399
"""Test that _probe_connection sends PostgreSQL v3 StartupMessage and Terminate when IAM principal is recorded."""
400400
from unittest.mock import MagicMock
401+
401402
from google.cloud.sql.connector.instance import _build_postgres_startup_packet
402403

403404
cache._enable_iam_auth = True

‎tests/unit/test_lazy.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ async def test_LazyRefreshCache_probe_connection_postgres_startup_packet(
119119
Test that LazyRefreshCache.connect_info probes the instance with a PostgreSQL
120120
StartupMessage and Terminate when enable_iam_auth=True and a principal is recorded.
121121
"""
122-
from unittest.mock import MagicMock, patch
122+
from unittest.mock import MagicMock
123+
from unittest.mock import patch
124+
123125
from google.cloud.sql.connector.instance import _build_postgres_startup_packet
124126

125127
keys = asyncio.create_task(generate_keys())

0 commit comments

Comments
 (0)