add test
This commit is contained in:
parent
bf97a947ed
commit
3a66358338
1 changed files with 6 additions and 0 deletions
6
tests/not_negative_or_zero.sql
Normal file
6
tests/not_negative_or_zero.sql
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{% test not_negative_or_zero(model, column_name) %}
|
||||||
|
with validation as (select {{ column_name }} as value from {{ model }})
|
||||||
|
select *
|
||||||
|
from validation
|
||||||
|
where value <= 0
|
||||||
|
{% endtest %}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue