more tests
This commit is contained in:
parent
9a53e6ca9f
commit
2a91cd1cc9
1 changed files with 13 additions and 0 deletions
|
|
@ -612,12 +612,25 @@ sources:
|
|||
- name: id
|
||||
data_type: character varying
|
||||
description: "{{ doc('generic_id_desc') }}"
|
||||
tests:
|
||||
- unique
|
||||
- not_null
|
||||
- dbt_expectations.expect_column_values_to_match_regex:
|
||||
regex: "^(pyr_.{24}|re_.{24})$"
|
||||
- name: amount
|
||||
data_type: bigint
|
||||
description: "Amount, in cents."
|
||||
tests:
|
||||
- not_null
|
||||
- dbt_expectations.expect_column_values_to_be_between:
|
||||
min_value: 0
|
||||
- name: charge
|
||||
data_type: character varying
|
||||
description: "ID of the charge that’s refunded."
|
||||
tests:
|
||||
- not_null
|
||||
- dbt_expectations.expect_column_values_to_match_regex:
|
||||
regex: "^(ch|py)_.{24}$"
|
||||
- name: object
|
||||
data_type: character varying
|
||||
description: "Silly column. The value is always `refund`."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue