From c446df340207d21ed0e04391e036775b0fd02928 Mon Sep 17 00:00:00 2001 From: Christopher Fenner Date: Mon, 25 Nov 2024 22:09:33 +0100 Subject: [PATCH] modify test case --- tests/test_TestForMissingProperties.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_TestForMissingProperties.py b/tests/test_TestForMissingProperties.py index 946de09d..4824ff5a 100644 --- a/tests/test_TestForMissingProperties.py +++ b/tests/test_TestForMissingProperties.py @@ -80,7 +80,7 @@ def test_missingProperties(self): 'ventilation.levels.levelTwo', 'ventilation.levels.levelThree', 'ventilation.levels.levelFour', - 'ventilation.quickmodes.forcedLevelFour', + 'ventilation.quickmodes.forcedLevelFour', # quickmode accessible via getVentilationQuickmode 'ventilation.quickmodes.silent', 'ventilation.quickmodes.standby', 'ventilation.quickmodes.comfort', @@ -129,6 +129,7 @@ def test_unverifiedProperties(self): ignore = [ 'heating.dhw.sensors.temperature.dhwCylinder.midBottom', # FIXME: remove once test data is updated + 'ventilation.quickmodes', ] all_features = self.read_all_features() @@ -142,7 +143,7 @@ def test_unverifiedProperties(self): for match in re.findall(r'getProperty\(\s*?f?"(.*)"\s*?\)', all_python_files[python]): feature_name = re.sub(r'{self.(circuit|burner|compressor)}', '0', match) feature_name = re.sub(r'{burner}', '0', feature_name) - feature_name = re.sub(r'\.{(program|active_program)}', '', feature_name) + feature_name = re.sub(r'\.{(quickmode|program|active_program)}', '', feature_name) used_features.append(feature_name) self.assertSetEqual(set([]), set(used_features) - set(all_features) - set(ignore))