@@ -34,7 +34,7 @@ def test_load_yaml_config_default(tmp_path):
3434 assert config .cicd_bot .invalidate_environment_after_deploy
3535 assert config .cicd_bot .merge_method is None
3636 assert config .cicd_bot .command_namespace is None
37- assert config .cicd_bot .auto_categorize_changes == CategorizerConfig . all_off ()
37+ assert config .cicd_bot .auto_categorize_changes == config . plan . auto_categorize_changes
3838 assert config .cicd_bot .default_pr_start is None
3939 assert not config .cicd_bot .enable_deploy_command
4040 assert config .cicd_bot .skip_pr_backfill
@@ -112,7 +112,7 @@ def test_load_python_config_defaults(tmp_path):
112112 assert config .cicd_bot .invalidate_environment_after_deploy
113113 assert config .cicd_bot .merge_method is None
114114 assert config .cicd_bot .command_namespace is None
115- assert config .cicd_bot .auto_categorize_changes == CategorizerConfig . all_off ()
115+ assert config .cicd_bot .auto_categorize_changes == config . plan . auto_categorize_changes
116116 assert config .cicd_bot .default_pr_start is None
117117 assert not config .cicd_bot .enable_deploy_command
118118 assert config .cicd_bot .skip_pr_backfill
@@ -252,3 +252,24 @@ def test_ttl_in_past(tmp_path):
252252 match = "TTL '1 week' is in the past. Please specify a relative time in the future. Ex: `in 1 week` instead of `1 week`." ,
253253 ):
254254 load_config_from_paths (Config , project_paths = [tmp_path / "config.yaml" ])
255+
256+
257+ def test_auto_categorize_changes_inherits_from_project_config (tmp_path ):
258+ (tmp_path / "config.yaml" ).write_text ("""
259+ plan:
260+ auto_categorize_changes:
261+ external: off
262+ python: full
263+ sql: off
264+ seed: full
265+
266+ cicd_bot:
267+ type: github
268+
269+ model_defaults:
270+ dialect: duckdb
271+ """ )
272+
273+ config = load_config_from_paths (Config , [tmp_path / "config.yaml" ])
274+
275+ assert config .cicd_bot .auto_categorize_changes == config .plan .auto_categorize_changes
0 commit comments