Skip to content

Commit 0548c99

Browse files
committed
Add model schema.yml
1 parent 6d108c4 commit 0548c99

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/dbt/test_model.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -884,6 +884,11 @@ def test_jinja_config_no_query(tmp_path, create_empty_project):
884884
with open(model_file, "w", encoding="utf-8") as f:
885885
f.write(model_contents)
886886

887+
schema_yaml = {"version": 2, "models": [{"name": "comment_config_model"}]}
888+
schema_file = model_dir / "schema.yml"
889+
with open(schema_file, "w", encoding="utf-8") as f:
890+
YAML().dump(schema_yaml, f)
891+
887892
context = Context(paths=project_dir)
888893

889894
# loads without error and contains empty query (which will error at runtime)

0 commit comments

Comments
 (0)