Skip to content

Commit cce3abd

Browse files
Fixes tests commented description
1 parent 553e2e7 commit cce3abd

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/python_testing/TC_FAN_3_1.py

+12-12
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def pics_TC_FAN_3_1(self) -> list[str]:
252252
@async_test_body
253253
async def test_TC_FAN_3_1(self):
254254
# Setup
255-
ep = self.get_endpoint(default=1)
255+
endpoint = self.get_endpoint(default=1)
256256
cluster = Clusters.FanControl
257257

258258
# *** STEP 1 ***
@@ -262,38 +262,38 @@ async def test_TC_FAN_3_1(self):
262262
# *** STEP 2 ***
263263
# TH checks for the existence of the SpeedSetting feature
264264
self.step(2)
265-
feature_map = await self.read_setting(ep, cluster.Attributes.FeatureMap)
265+
feature_map = await self.read_setting(endpoint, cluster.Attributes.FeatureMap)
266266
self.supports_speed = bool(feature_map & cluster.Bitmaps.Feature.kMultiSpeed)
267267

268268
# *** STEP 3 ***
269269
# TH subscribes to the DUT's FanControl cluster
270270
self.step(3)
271271
self.attribute_subscription = ClusterAttributeChangeAccumulator(cluster)
272-
await self.attribute_subscription.start(self.default_controller, self.dut_node_id, ep)
272+
await self.attribute_subscription.start(self.default_controller, self.dut_node_id, endpoint)
273273

274274
# TH writes to the DUT the PercentSetting attribute iteratively within
275275
# a range of 1 to 100 one at a time in ascending order
276276
# Verifies that FanMode and SpeedSetting values (if supported) are being
277-
# updated accordingly (greater or less than the previous values)
278-
await self.verify_fan_control_attribute_values(ep, cluster.Attributes.PercentSetting, OrderEnum.Ascending)
277+
# updated accordingly (current values greater than previous values)
278+
await self.verify_fan_control_attribute_values(endpoint, cluster.Attributes.PercentSetting, OrderEnum.Ascending)
279279

280280
# TH writes to the DUT the PercentSetting attribute iteratively within
281-
# a range of 1 to 100 one at a time in descending order
281+
# a range of 100 to 0 one at a time in descending order
282282
# Verifies that FanMode and SpeedSetting values (if supported) are being
283-
# updated accordingly (greater or less than the previous values)
284-
await self.verify_fan_control_attribute_values(ep, cluster.Attributes.PercentSetting, OrderEnum.Descending)
283+
# updated accordingly (current values less than previous values)
284+
await self.verify_fan_control_attribute_values(endpoint, cluster.Attributes.PercentSetting, OrderEnum.Descending)
285285

286286
# TH writes to the DUT the FanMode attribute iteratively within a range of
287287
# the number of available fan modes one at a time in ascending order
288288
# Verifies that PercentSetting and SpeedSetting values (if supported) are being
289-
# updated accordingly (greater or less than the previous values)
290-
await self.verify_fan_control_attribute_values(ep, cluster.Attributes.FanMode, OrderEnum.Ascending)
289+
# updated accordingly (current values greater than previous values)
290+
await self.verify_fan_control_attribute_values(endpoint, cluster.Attributes.FanMode, OrderEnum.Ascending)
291291

292292
# TH writes to the DUT the FanMode attribute iteratively within a range of
293293
# the number of available fan modes one at a time in descending order
294294
# Verifies that PercentSetting and SpeedSetting values (if supported) are being
295-
# updated accordingly (greater or less than the previous values)
296-
await self.verify_fan_control_attribute_values(ep, cluster.Attributes.FanMode, OrderEnum.Descending)
295+
# updated accordingly (current values less than previous values)
296+
await self.verify_fan_control_attribute_values(endpoint, cluster.Attributes.FanMode, OrderEnum.Descending)
297297

298298

299299
if __name__ == "__main__":

0 commit comments

Comments
 (0)