Skip to content

Commit 5fbde41

Browse files
committed
assert the warning gets logged
1 parent faec6eb commit 5fbde41

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/dbt/test_transformation.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1837,7 +1837,7 @@ def test_parsetime_adapter_call(
18371837

18381838

18391839
@pytest.mark.xdist_group("dbt_manifest")
1840-
def test_partition_by(sushi_test_project: Project):
1840+
def test_partition_by(sushi_test_project: Project, caplog):
18411841
context = sushi_test_project.context
18421842
context.target = BigQueryConfig(name="production", database="main", schema="sushi")
18431843
model_config = ModelConfig(
@@ -1884,6 +1884,10 @@ def test_partition_by(sushi_test_project: Project):
18841884
name="target", schema="test", database="test", account="foo", user="bar", password="baz"
18851885
)
18861886
assert model_config.to_sqlmesh(context).partitioned_by == []
1887+
assert (
1888+
"Ignoring partition_by config for model 'model' targeting snowflake. The partition_by config is not supported for Snowflake."
1889+
in caplog.text
1890+
)
18871891

18881892
model_config = ModelConfig(
18891893
name="model",

0 commit comments

Comments
 (0)