refactor(db): use Dialect instead of Engine in select_star to avoid SSH tunnels (#35540)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Elizabeth Thompson
2026-02-02 10:26:35 -08:00
committed by GitHub
parent be404f9b84
commit e9b494163b
10 changed files with 33 additions and 34 deletions

View File

@@ -252,7 +252,7 @@ def test_select_star(mocker: MockerFixture) -> None:
Test the ``select_star`` method.
"""
database = mocker.MagicMock()
engine = mocker.MagicMock()
dialect = mocker.MagicMock()
def quote_table(table: Table, dialect: Dialect) -> str:
return ".".join(
@@ -264,7 +264,7 @@ def test_select_star(mocker: MockerFixture) -> None:
spec.select_star(
database=database,
table=Table("my_table", "my_schema", "my_catalog"),
engine=engine,
dialect=dialect,
limit=100,
show_cols=False,
indent=True,