Skip to content

Commit

Permalink
Add sql_header to data tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dbeatty10 committed Apr 4, 2024
1 parent 8cddfd3 commit cbe9410
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
{%- endmacro %}

{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}
{%- set sql_header = config.get('sql_header', none) -%}

{{ sql_header if sql_header is not none }}

select
{{ fail_calc }} as failures,
{{ fail_calc }} {{ warn_if }} as should_warn,
Expand Down

0 comments on commit cbe9410

Please sign in to comment.