Skip to content

Commit 466904a

Browse files
committed
assert the warning gets logged
1 parent 0c706fb commit 466904a

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
@@ -1885,7 +1885,7 @@ def test_parsetime_adapter_call(
18851885

18861886

18871887
@pytest.mark.xdist_group("dbt_manifest")
1888-
def test_partition_by(sushi_test_project: Project):
1888+
def test_partition_by(sushi_test_project: Project, caplog):
18891889
context = sushi_test_project.context
18901890
context.target = BigQueryConfig(name="production", database="main", schema="sushi")
18911891
model_config = ModelConfig(
@@ -1932,6 +1932,10 @@ def test_partition_by(sushi_test_project: Project):
19321932
name="target", schema="test", database="test", account="foo", user="bar", password="baz"
19331933
)
19341934
assert model_config.to_sqlmesh(context).partitioned_by == []
1935+
assert (
1936+
"Ignoring partition_by config for model 'model' targeting snowflake. The partition_by config is not supported for Snowflake."
1937+
in caplog.text
1938+
)
19351939

19361940
model_config = ModelConfig(
19371941
name="model",

0 commit comments

Comments
 (0)