From 4bea5f20f7b97ed978b70e4825e93c0bfaa2dc6a Mon Sep 17 00:00:00 2001 From: Gerda Shank Date: Wed, 18 Dec 2024 16:34:25 -0500 Subject: [PATCH] Check for both tests and data_tests before munging --- core/dbt/config/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/dbt/config/project.py b/core/dbt/config/project.py index b3b7378dc37..1054c42041d 100644 --- a/core/dbt/config/project.py +++ b/core/dbt/config/project.py @@ -199,7 +199,7 @@ def load_raw_project(project_root: str) -> Dict[str, Any]: if not isinstance(project_dict, dict): raise DbtProjectError(f"{DBT_PROJECT_FILE_NAME} does not parse to a dictionary") - if "tests" in project_dict: + if "tests" in project_dict and "data_tests" not in project_dict: project_dict["data_tests"] = project_dict.pop("tests") return project_dict