diff --git a/tests/generic/incremental_accepted_values.sql b/tests/generic/incremental_accepted_values.sql index c356f1c..7b4cefb 100644 --- a/tests/generic/incremental_accepted_values.sql +++ b/tests/generic/incremental_accepted_values.sql @@ -1,13 +1,13 @@ -{% test incremental_accepted_values(model, column_name, date_column_name, greater_than_equal_to, less_than_equal_to, condition, values=[], quote=false) %} +{% test incremental_accepted_values(model, column_name, date_column_name, greater_than_equal_to, less_than_equal_to, condition, quote, values=[]) %} {{ config(severity = 'error') }} {% set condition = condition | default('') %} {% set date_column_name = date_column_name | default('closed_at') %} {% set greater_than_equal_to = greater_than_equal_to | default('2 day') %} {% set less_than_equal_to = less_than_equal_to | default('') %} - {% if quote %} - {% set values = values | map(attribute='string') | join(', ') %} - {% else %} + {% set quote = quote | default('false') %} + + {% if quote == 'true' %} {% set values = values | join(', ') %} {% endif %}