-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from dbt-labs/feature/generate_multiple_models…
…_yaml Feature/generate multiple models yaml
- Loading branch information
Showing
6 changed files
with
60 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
integration_tests/tests/test_generate_model_yaml_multiple_models.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{% set actual_model_yaml = codegen.generate_model_yaml( | ||
model_names=['data__a_relation','data__b_relation'] | ||
) | ||
%} | ||
|
||
{% set expected_model_yaml %} | ||
version: 2 | ||
|
||
models: | ||
- name: data__a_relation | ||
description: "" | ||
columns: | ||
- name: col_a | ||
description: "" | ||
|
||
- name: col_b | ||
description: "" | ||
|
||
- name: data__b_relation | ||
description: "" | ||
columns: | ||
- name: col_a | ||
description: "" | ||
|
||
- name: col_b | ||
description: "" | ||
|
||
{% endset %} | ||
|
||
{{ assert_equal (actual_model_yaml | trim, expected_model_yaml | trim) }} |
2 changes: 1 addition & 1 deletion
2
integration_tests/tests/test_generate_model_yaml_upstream_descriptions.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters