Make composition_yaml read diagnostics key instead

Diagnostics -> diagnostics (initial lower case d)

Change-Id: Idfc421dad060fa5b874031e5efb4230dc2b99cfa
This commit is contained in:
Henrik Wahlqvist 2024-09-09 15:43:23 +02:00
parent ecdf390a2c
commit a280614c1f
2 changed files with 3 additions and 3 deletions

View File

@ -305,7 +305,7 @@ class CompositionYaml(ProblemLogger):
(dict): Dict containing diagnostic information.
"""
diag_dict = {}
diagnostics = self.composition_spec.get("Diagnostics", {})
diagnostics = self.composition_spec.get("diagnostics", {})
dids = diagnostics.get("dids", {})
self.zc_dids.valid_dids = dids
events = diagnostics.get("events", {})

View File

@ -172,7 +172,7 @@ class TestCompositionYaml(unittest.TestCase):
def test_composition_yaml_with_dids(self):
"""Checking that the dict is generated correctly, with DIDs."""
self.zc_dids.project_dids = {"DID1": {"type": "UInt8"}}
self.zc_spec["Diagnostics"] = composition_yaml_with_dids.diagnostics
self.zc_spec["diagnostics"] = composition_yaml_with_dids.diagnostics
with patch.object(
CompositionYaml,
"_get_all_calibration_definitions",
@ -187,7 +187,7 @@ class TestCompositionYaml(unittest.TestCase):
def test_composition_yaml_with_dtcs(self):
"""Checking that the dict is generated correctly, with DTCs."""
self.zc_core.project_dtcs = {"DTC1"}
self.zc_spec["Diagnostics"] = composition_yaml_with_dtcs.diagnostics
self.zc_spec["diagnostics"] = composition_yaml_with_dtcs.diagnostics
with patch.object(
CompositionYaml,
"_get_all_calibration_definitions",