Skip to content

Commit 6446e60

Browse files
committed
Fix test
1 parent a020a0f commit 6446e60

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

sqlmesh/core/model/definition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2040,7 +2040,7 @@ def load_sql_based_model(
20402040
20412041
MODEL (
20422042
name sqlmesh_example.full_model, --model name
2043-
kind VIEW, --materialization
2043+
kind FULL, --materialization
20442044
cron '@daily', --schedule
20452045
);
20462046

tests/core/test_loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def execute(
159159

160160
with pytest.raises(
161161
ConfigError,
162-
match=r"Failed to load model definition at '.*'.\n Duplicate name: 'test_schema.test_model'.",
162+
match=r"Failed to load model from file '.*'.\n\n Duplicate name: 'test_schema.test_model'.",
163163
):
164164
Context(paths=tmp_path, config=config)
165165

tests/core/test_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ def test_unordered_model_statements():
613613

614614
with pytest.raises(ConfigError) as ex:
615615
load_sql_based_model(expressions)
616-
assert "MODEL statement is required" in str(ex.value)
616+
assert "Please add a required MODEL block at top of the file. Example:" in str(ex.value)
617617

618618

619619
def test_no_query():

0 commit comments

Comments
 (0)