personalization: implement UppAudit and BatchAudit

Change-Id: Iaab336ca91b483ecdddd5c6c8e08dc475dc6bd0a
Jenkins: skip-card-test
This commit is contained in:
Neels Hofmeyr
2025-04-18 05:19:34 +02:00
committed by laforge
parent 4fb393e6ea
commit 08f40db8a3
2 changed files with 225 additions and 1 deletions
+7
View File
@@ -260,6 +260,13 @@ class ConfigurableParameter(abc.ABC, metaclass=ClassVarMeta):
'''
return cls.get_len_range()[1] or 16
@classmethod
def is_super_of(cls, other_class):
try:
return issubclass(other_class, cls)
except TypeError:
return False
class DecimalParam(ConfigurableParameter):
"""Decimal digits. The input value may be a string of decimal digits like '012345', or an int. The output of
validate_val() is a string with only decimal digits 0-9, in the required length with leading zeros if necessary.