Skip to content

Commit ff6ebfa

Browse files
committed
Fix tests
1 parent 8c6110f commit ff6ebfa

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

sqlmesh/core/engine_adapter/snowflake.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def _build_table_properties_exp(
263263
table_properties = {k.upper(): v for k, v in table_properties.items()}
264264
# if we are creating a non-dynamic table; remove any properties that are only valid for dynamic tables
265265
# this is necessary because we create "normal" tables from the same managed model definition for dev previews and the "normal" tables dont support these parameters
266-
if table_kind and "DYNAMIC" not in table_kind:
266+
if "DYNAMIC" not in (table_kind or "").upper():
267267
for prop in {"WAREHOUSE", "TARGET_LAG", "REFRESH_MODE", "INITIALIZE"}:
268268
table_properties.pop(prop, None)
269269

tests/core/test_snapshot_evaluator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3367,6 +3367,7 @@ def test_create_managed(adapter_mock, make_snapshot, mocker: MockerFixture):
33673367
table_properties=model.physical_properties,
33683368
table_description=model.description,
33693369
column_descriptions=model.column_descriptions,
3370+
table_format=None,
33703371
)
33713372

33723373

0 commit comments

Comments
 (0)