Aligned test with updated R-610030
[vvp/validation-scripts.git] / ice_validator / tests / test_heat_template_structure.py
index 3b69faf..7157153 100644 (file)
@@ -55,7 +55,9 @@ def test_heat_template_structure_contains_heat_template_version(yaml_file):
     Check that all heat templates have the required sections
     """
     template = load_yaml(yaml_file)
-    assert "heat_template_version" in template, "This template must contain a heat_template_version section"
+    assert (
+        "heat_template_version" in template
+    ), "This template must contain a heat_template_version section"
 
 
 @validates("R-39402")
@@ -68,14 +70,16 @@ def test_heat_template_structure_contains_description(yaml_file):
 
 
 @validates("R-35414")
-def test_heat_template_structure_contains_parameters(heat_template):
+def test_heat_template_structure_contains_parameters(yaml_file):
     """
     Check that all heat templates have the required sections
     """
-    if is_base_module(heat_template):
+    if is_base_module(yaml_file):
         pytest.skip("Not applicable to base modules")
-    template = load_yaml(heat_template)
-    assert "parameters" in template, "This template must contain a parameters section"
+    template = load_yaml(yaml_file)
+    assert "parameters" in template and len(
+        template["parameters"].keys()
+    ), "This template must contain a parameters section"
 
 
 @validates("R-23664")