Skip to content

Commit

Permalink
modify test case
Browse files Browse the repository at this point in the history
  • Loading branch information
CFenner committed Nov 25, 2024
1 parent b23b575 commit c446df3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_TestForMissingProperties.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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()
Expand All @@ -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))
Expand Down

0 comments on commit c446df3

Please sign in to comment.