File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2040,7 +2040,7 @@ def load_sql_based_model(
20402040
20412041MODEL (
20422042 name sqlmesh_example.full_model, --model name
2043- kind VIEW , --materialization
2043+ kind FULL , --materialization
20442044 cron '@daily', --schedule
20452045);
20462046
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
619619def test_no_query ():
You can’t perform that action at this time.
0 commit comments