From c41a38c12823a5b1abdb14d3197d6775cdd97d82 Mon Sep 17 00:00:00 2001 From: Gerda Shank Date: Wed, 18 Dec 2024 11:09:33 -0500 Subject: [PATCH] Get unrendered project from "tests" in addition to "data_tests" --- core/dbt/context/context_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/dbt/context/context_config.py b/core/dbt/context/context_config.py index b1aace475c7..20642eff1e2 100644 --- a/core/dbt/context/context_config.py +++ b/core/dbt/context/context_config.py @@ -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: