test(regulatory-info-package): 补充模板生成回归覆盖
This commit is contained in:
@@ -10,17 +10,16 @@ from review_agent.regulatory_info_package.services.template_config import (
|
||||
)
|
||||
|
||||
|
||||
def test_template_config_loads_seven_templates():
|
||||
def test_template_config_loads_six_templates():
|
||||
config = load_template_config()
|
||||
|
||||
assert config["version"] == "regulatory_info_package_templates_v1"
|
||||
assert config["zip_name"] == DEFAULT_ZIP_NAME
|
||||
assert len(config["templates"]) == 7
|
||||
assert len(config["templates"]) == 6
|
||||
assert {template["code"] for template in config["templates"]} == {
|
||||
"ch1_2_directory",
|
||||
"ch1_4_application_form",
|
||||
"ch1_5_product_list",
|
||||
"ch1_9_pre_submission",
|
||||
"ch1_11_1_standards",
|
||||
"ch1_11_5_authenticity",
|
||||
"ch1_11_6_conformity",
|
||||
@@ -45,4 +44,3 @@ def test_template_config_sources_exist():
|
||||
assert source_dir.exists()
|
||||
for template in config["templates"]:
|
||||
assert (source_dir / template["source_file"]).exists()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user