more tests

This commit is contained in:
Pablo Martin 2024-02-23 12:30:40 +01:00
parent 9a53e6ca9f
commit 2a91cd1cc9

View file

@ -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 thats 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`."