Hey - for a test, like `elementary.schema_changes`...
# community-support
w
Hey - for a test, like
elementary.schema_changes
is it possible to apply it to all models or a group of models in
dbt_project.yml
? Or do they need to go in the schema/yml file for each model? Thanks
t
Hi Will, You need to add it to each model. You can use yaml anchors to make it easier tho:
Copy code
version: 2

elementary_schema_change_test: &elementary_schema_change_test
  elementary.schema_changes:
    tags: [elementary, elementary_schema_change_tests]
    config:
      severity: warn

tests: &tests
  - *elementary_schema_change_test

models:
  - name: my_model
    tests: &tests
thankyou 1