Skip to content

Commit

Permalink
Fix README
Browse files Browse the repository at this point in the history
  • Loading branch information
psousa50 committed Jan 15, 2024
1 parent d4bfa65 commit 6b72b43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -656,11 +656,11 @@ FROM
raw_financial_data
```

You can ensure that revenue is rounded to two decimal places when testing `financial_model`, and your expectations are also rounded to five decimal places. This ensures that the test is precise and consistent.
You can ensure that `avg_revenue` is rounded to five decimal places when testing `financial_model`, and your expectations are also rounded to five decimal places. This ensures that the test is precise and consistent.

```Jinja
{% set column_transformations = {
"revenue": "round(##column##, 5)"
"avg_revenue": "round(##column##, 5)"
} %}
{% call dbt_unit_testing.test('financial_model', options={"column_transformations": column_transformations}) %}
Expand All @@ -672,7 +672,7 @@ You can ensure that revenue is rounded to two decimal places when testing `finan
select 3.0 as revenue
{% endcall %}
{% call dbt_unit_testing.expect() %}
select 3.33333 as revenue
select 3.33333 as avg_revenue
{% endcall %}
{% endcall %}
```
Expand Down

0 comments on commit 6b72b43

Please sign in to comment.