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

Open
joellabes opened this issue Oct 25, 2024 · 0 comments · May be fixed by #178
Open

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

joellabes opened this issue Oct 25, 2024 · 0 comments · May be fixed by #178

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.
@joellabes joellabes linked a pull request Nov 22, 2024 that will close this issue
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