Skip to content

Commit 7f0ee57

Browse files
committed
Wordsmith
1 parent 6446e60 commit 7f0ee57

2 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
@@ -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
20412041
MODEL (
20422042
name sqlmesh_example.full_model, --model name

tests/core/test_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

619619
def test_no_query():

0 commit comments

Comments
 (0)