From 3a66358338acebeff65930a29f60faf885da76a9 Mon Sep 17 00:00:00 2001 From: Pablo Martin Date: Fri, 14 Jun 2024 14:18:09 +0200 Subject: [PATCH] add test --- tests/not_negative_or_zero.sql | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/not_negative_or_zero.sql diff --git a/tests/not_negative_or_zero.sql b/tests/not_negative_or_zero.sql new file mode 100644 index 0000000..2b5e830 --- /dev/null +++ b/tests/not_negative_or_zero.sql @@ -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 %}