EqualExperts / dbt-unit-testing

This dbt package contains macros to support unit testing that can be (re)used across dbt projects.
MIT License
413 stars 77 forks source link

Fix Readme - Extra endcall in mock test with Column Seperator = '|' #183

Closed Amar-AIcloud closed 10 months ago

Amar-AIcloud commented 10 months ago

Hi

While I was working on a mock test I copied the code from readme and made adjustments accordingly to my tables. I found that it has an extra endcall at the end of the code.

  {% call dbt_unit_testing.expect({"input_format": "csv"}) %}
    customer_id | customer_lifetime_value
    1           | 20
  {% endcall %}
{% endcall %}

{% endcall %}

Error:

Compilation Error in test test_web_promotions (tests\unit_tests\.sql)
  Encountered unknown tag 'endcall'.
    line 22
      {% endcall %}