Is it possible to do this or can the test severity only accept hardcoded values?
I tried adding something like this:
vars:
test_severity: “{{ ‘fail’ if target.name == ‘prod’ else ‘warn’ if target.name == ‘dev’ else ‘fail’ }}”
and
severity: “{{ var(‘test_severity’) }}”
However it seems like dbt is not having it…
I believe this would be a valuable feature in order to have different severities in different environments