Skip to content

Commit

Permalink
Check for both tests and data_tests before munging
Browse files Browse the repository at this point in the history
  • Loading branch information
gshank committed Dec 18, 2024
1 parent 6e8bf35 commit 4bea5f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/dbt/config/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Check warning on line 203 in core/dbt/config/project.py

View check run for this annotation

Codecov / codecov/patch

core/dbt/config/project.py#L203

Added line #L203 was not covered by tests

return project_dict
Expand Down

0 comments on commit 4bea5f2

Please sign in to comment.