[Bug] Unit tests don't recognize versioned sources #11039
Labels
bug
Something isn't working
duplicate
This issue or pull request already exists
model_versions
unit tests
Issues related to built-in dbt unit testing functionality
Is this a new bug in dbt-core?
Current Behavior
I have a test that depends on a model that is versioned, but when I run the test, I get an error that the node cannot be found.
For example, in my unit test I have:
The
fct_outage
model is versioned, and I removed thev1
version a while ago, so I just have:The
fct_outage.yml
model is defined asWhen I run the unit test, I get:
However, if I remove versions from
fct_outage.yml
and renamefct_outage_v2.sql
tofct_outage.sql
, the unit test works.Expected Behavior
We should be able to run unit tests that depend on models that are versioned.
Steps To Reproduce
Relevant log output
No response
Environment
Which database adapter are you using with dbt?
snowflake
Additional Context
No response
The text was updated successfully, but these errors were encountered: