Skip to content

Commit

Permalink
Get unrendered project from "tests" in addition to "data_tests"
Browse files Browse the repository at this point in the history
  • Loading branch information
gshank committed Dec 18, 2024
1 parent b9be1ac commit c41a38c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/dbt/context/context_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def get_config_dict(self, resource_type: NodeType) -> Dict[str, Any]:
elif resource_type == NodeType.Source:
model_configs = unrendered.get("sources")
elif resource_type == NodeType.Test:
model_configs = unrendered.get("data_tests")
model_configs = unrendered.get("data_tests") or unrendered.get("tests")
elif resource_type == NodeType.Metric:
model_configs = unrendered.get("metrics")
elif resource_type == NodeType.SemanticModel:
Expand Down

0 comments on commit c41a38c

Please sign in to comment.