add missing property check

check also values of properties with mandatory=False

Change-Id: I346691a7260a4d85b89c9620c097180da4e9d657
Reviewed-on: https://forge.frm2.tum.de/review/c/secop/frappy/+/37777
Reviewed-by: Markus Zolliker <markus.zolliker@psi.ch>
Tested-by: Jenkins Automated Tests <pedersen+jenkins@frm2.tum.de>
This commit is contained in:
2025-11-06 09:18:53 +01:00
parent 9fe040e9d3
commit ee26c72ed4

View File

@@ -159,7 +159,7 @@ class HasProperties(HasDescriptors):
def checkProperties(self): def checkProperties(self):
"""validates properties and checks for min... <= max...""" """validates properties and checks for min... <= max..."""
for pn, po in self.propertyDict.items(): for pn, po in self.propertyDict.items():
if po.mandatory: if po.mandatory or pn in self.propertyValues:
try: try:
self.propertyValues[pn] = po.datatype.validate(self.propertyValues[pn]) self.propertyValues[pn] = po.datatype.validate(self.propertyValues[pn])
except (KeyError, BadValueError): except (KeyError, BadValueError):