The problem I’m having
I’m trying to define documentation and tests on my seeds. But I am unable to view the docs or run the tests.
What I’ve already tried
As per dbt-docs I’ve created a [any_name].yml
file in my seeds directory with the following content:
version: 2
seeds:
- name: exchange_rates
description: '{{ doc("seed_exchange_rates") }}'
columns:
- name: financial_quarter
data_tests:
- unique
- not_null
- name: usd_to_eur
data_tests:
- not_null
When I run dbt seed
the seeds are loaded as expected, but when running dbt test
the seed-tests are ignored. Also when viewing the docs created by dbt docs generate
my descriptions on the seeds don’t appear.
What am I missing/doing wrong?