[Bug] Disabled generic tests appear in manifest.nodes #10299
Labels
bug
Something isn't working
dbt tests
Issues related to built-in dbt testing functionality
Impact: CA
stale
Issues that have gone stale
Is this a new bug in dbt-core?
Current Behavior
When you have a generic test for a model, it remains in the manifest when disabled. Other node types are only in the disabled dictionary.
Expected Behavior
Steps To Reproduce
my_model.sql
schema.yml
dbt compile
and see the model and the test in manifest.nodes,disabled
dictionary is emptymy_model.sql
dbt compile
and see the test in manifest.nodes but not disabled dictionaryor
dbt compile
and see the model and the test in manifest.nodes,disabled
dictionary is emptyenabled: false
configmy_model
dbt compile
and see the test in manifest.nodes but not disabled dictionary and the model in the disabled dict but not in manifest.nodesRelevant log output
Environment
- dbt: 1.9a1
Which database adapter are you using with dbt?
No response
Additional Context
TODO: Does this also apply to singular tests?
This may require some tests that verify the number of nodes in the results equals a specific number. This is an unknown that may add some time to the fix.
More context for how it works now:
In compilation.py we specifically check for disabled tests in the "nodes" dictionary. However, when we do "cleanup_disabled" anything that's disabled ought to be moved to the disabled dictionary.
The text was updated successfully, but these errors were encountered: