Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add data_tests block as a top level dbt type so that you can document singular tests #174

Closed
joellabes opened this issue Oct 25, 2024 · 0 comments · Fixed by #178
Closed

Comments

@joellabes
Copy link
Collaborator

https://docs.getdbt.com/docs/build/data-tests#singular-data-tests

# tests/singular_tests.yml
version: 2
data_tests:
  - name: assert_total_payment_amount_is_positive
    description: >
      Refunds have a negative amount, so the total amount should always be >= 0.
      Therefore return records where total amount < 0 to make the test fail.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant