Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joellabes committed Dec 13, 2023
1 parent 54ce9a0 commit a1f2d47
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
6 changes: 5 additions & 1 deletion tests/1.6/invalid/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ models:
+grants:
no_numbers: 55


materialized_views:
materialized: materialized_view
config:
target_lag: 1 hour
snowflake_warehouse: 11


seeds:
Expand Down
6 changes: 6 additions & 0 deletions tests/1.6/valid/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ models:
+grants:
privilege: role
privileges: ["select_user", "select_cruiser"]
materialized_views:
+materialized: materialized_view
+auto_refresh: true
+backup: '{{ target.name == "prod" }}'
+target_lag: 20 minutes
+snowflake_warehouse: my_warehouse

test_bq:
+labels:
Expand Down
11 changes: 9 additions & 2 deletions tests/1.6/valid/dbt_yml_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ models:
- v: 1
config:
alias: dim_customers

- name: my_model_level_contract_model
config:
contract:
Expand All @@ -70,7 +70,14 @@ models:
- type: unique
columns: [ color, date_day ]
name: strange_uniqueness_requirement


- name: my_materialized_view
config:
materialized: materialized_view
auto_refresh: true
backup: '{{ target.name == "prod" }}'
target_lag: downstream
snowflake_warehouse: my_warehouse

snapshots:
- name: snapshot_name
Expand Down

0 comments on commit a1f2d47

Please sign in to comment.