Skip to content

Commit 9067e8f

Browse files
authored
Fix: use correct default gateway name from config for tests (#2612)
* Fix: use correct default gateway name from config for tests * fixup
1 parent bf42170 commit 9067e8f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

sqlmesh/core/test/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def run_tests(
4141
preserve_fixtures: Preserve the fixture tables in the testing database, useful for debugging.
4242
"""
4343
testing_adapter_by_gateway: t.Dict[str, EngineAdapter] = {}
44-
default_gateway = gateway or config.default_gateway
44+
default_gateway = gateway or config.default_gateway_name
4545

4646
try:
4747
tests = []

tests/core/test_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1073,7 +1073,6 @@ def test_gateway(copy_to_temp_path: t.Callable, mocker: MockerFixture) -> None:
10731073
"main": GatewayConfig(connection=DuckDBConnectionConfig(database=db_db_path)),
10741074
"test": GatewayConfig(test_connection=DuckDBConnectionConfig(database=test_db_path)),
10751075
},
1076-
default_gateway="main",
10771076
model_defaults=ModelDefaultsConfig(dialect="duckdb"),
10781077
)
10791078

0 commit comments

Comments
 (0)