File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2036,7 +2036,7 @@ def load_sql_based_model(
20362036 variables: The variables to pass to the model.
20372037 kwargs: Additional kwargs to pass to the loader.
20382038 """
2039- missing_model_msg = f"""Please add a required MODEL block at top of the file. Example:
2039+ missing_model_msg = f"""Please add a MODEL block at the top of the file. Example:
20402040
20412041MODEL (
20422042 name sqlmesh_example.full_model, --model name
Original file line number Diff line number Diff line change @@ -576,7 +576,7 @@ def test_no_model_statement(tmp_path: Path):
576576 expressions = d .parse ("SELECT 1 AS x" )
577577 with pytest .raises (
578578 ConfigError ,
579- match = "Please add a required MODEL block at top of the file. Example:" ,
579+ match = "Please add a MODEL block at the top of the file. Example:" ,
580580 ):
581581 load_sql_based_model (expressions )
582582
@@ -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 "Please add a required MODEL block at top of the file. Example:" in str (ex .value )
616+ assert "Please add a MODEL block at the 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