How can I override the 2 invocations of dbt_utils.star separately? They need to return different columns. Is there a way to separately override multiple invocations of the same macro in a unit test?
I was hoping that something like this might work:
overrides:
macros:
dbt_utils.star:
- col_a, col_b # first invocation
- col_c, col_d # second invocation
But unsurprisingly, it doesn’t (it would be in the docs otherwise).
which overrides the macro definition in the test. When I saw that I really hoped it would work, alas, it doesn’t, at least not for me. dbt parses the macro definition alright, but it clearly expects the override to be the literal result of the macro invocation, not a redefinition of it.