Skip to content

Commit

Permalink
Add tests for id uniqueness and not null
Browse files Browse the repository at this point in the history
  • Loading branch information
JCZuurmond committed Jul 30, 2023
1 parent 9439b9b commit cd12af5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions models/staging/stg_github_contributions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ version: 2
models:
- name: stg_pull_requests
columns:
- name: url
tests:
- not_null
- unique
- name: user_login
tests:
- accepted_values:
Expand All @@ -13,6 +17,10 @@ models:
- dbt_utils.expression_is_true:
expression: "NOT private"
columns:
- name: full_name
tests:
- not_null
- unique
- name: visibility
tests:
- accepted_values:
Expand Down

0 comments on commit cd12af5

Please sign in to comment.