Skip to content

Commit c78f5df

Browse files
author
Jordan Russell
committed
chore(tests): fix cloud connector tests with no-op _detect_extensions
1 parent df4ce58 commit c78f5df

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/unit/adapters/test_asyncpg/test_cloud_connectors.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ def disable_connectors_by_default():
1616
"""Disable both connectors by default for clean test state."""
1717
with patch("sqlspec.adapters.asyncpg.config.CLOUD_SQL_CONNECTOR_INSTALLED", False):
1818
with patch("sqlspec.adapters.asyncpg.config.ALLOYDB_CONNECTOR_INSTALLED", False):
19-
yield
19+
with patch.object(AsyncpgConfig, "_detect_extensions", new_callable=AsyncMock):
20+
yield
2021

2122

2223
@pytest.fixture

0 commit comments

Comments
 (0)