Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Place the seed node specifications under the seeds key #581

Merged
merged 1 commit into from
May 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 23 additions & 23 deletions integration_tests/models/generic_tests/schema.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: 2

models:
seeds:
- name: data_test_not_constant
columns:
- name: field
Expand Down Expand Up @@ -31,27 +31,6 @@ models:
expression: = 0.5
condition: col_a = 0.5

- name: test_recency
tests:
- dbt_utils.recency:
datepart: day
field: today
interval: 1

- name: test_equal_rowcount
tests:
- dbt_utils.equal_rowcount:
compare_model: ref('test_equal_rowcount')

- name: test_equal_column_subset
tests:
- dbt_utils.equality:
compare_model: ref('data_people')
compare_columns:
- first_name
- last_name
- email

- name: data_people
columns:
- name: is_active
Expand Down Expand Up @@ -136,7 +115,6 @@ models:
- dbt_utils.cardinality_equality:
to: ref('data_cardinality_equality_b')
field: different_name


- name: data_test_accepted_range
columns:
Expand Down Expand Up @@ -168,3 +146,25 @@ models:
tests:
- dbt_utils.not_null_proportion:
at_least: 0.9

models:
- name: test_recency
tests:
- dbt_utils.recency:
datepart: day
field: today
interval: 1

- name: test_equal_rowcount
tests:
- dbt_utils.equal_rowcount:
compare_model: ref('test_equal_rowcount')

- name: test_equal_column_subset
tests:
- dbt_utils.equality:
compare_model: ref('data_people')
compare_columns:
- first_name
- last_name
- email