Hey team, I’m following what the docs show to add...
# community-support
c
Hey team, I’m following what the docs show to add a description in the test config block, along with tags. But dbt is showing an error (attached). I’m assuming it’s due to a comma not showing up between the tags and meta — the docs don’t look correct. Please advise.
Checking back in to see if there’s any update here?
a
Hey @Chris Lanham can you share a extract of your yml file or config block in the sql file where you added the description? Also which version are you using of both dbt and elementary?
c
Sure thing — Versions: • Elementary = 0.11.1 • dbt = 1.6
Config block in SQL singular test:
Copy code
{{
    config(
        tags=['high_priority_online_payments_prod']
        meta={
            description: "Test."
        }
    )
}}
Error:
Copy code
Compilation Error in test assert_payment_is_not_linked_to_deleted_user (tests/assert_payment_is_not_linked_to_deleted_user.sql)
  expected token ',', got 'meta'
    line 4
      meta={
a
It seems there is a missing comma after ]
Config block in SQL singular test:
Copy code
{{
    config(
        tags=['high_priority_online_payments_prod'],
        meta={
            description: "Test."
        }
    )
}}
Try the above
c
Tried that and received this error:
can not serialize 'Undefined' object
This is the updated config block:
Copy code
{{
    config(
        tags=['high_priority_online_payments_prod'],
        meta={
            description: "Test."
        }
    )
}}
a
Please try: (added quotes to description)
Copy code
{{
    config(
        tags=['high_priority_online_payments_prod'],
        meta={
            “description”: "Test."
        }
    )
}}
✅ 1
c
That worked! Thanks @Alex. Appreciate your help!
👍 1