Skip to content

Commit 4d9e2ca

Browse files
committed
Fixed: Renamed CLUSTER to cluster_dishm_mode for clarity.
1 parent a669bbf commit 4d9e2ca

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/python_testing/TC_DISHM_1_2.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@
4040
from chip.testing.matter_testing import MatterBaseTest, TestStep, async_test_body, default_matter_test_main
4141
from modebase_cluster_check import ModeBaseClusterChecks
4242

43-
CLUSTER = Clusters.DishwasherMode
43+
cluster_dishm_mode = Clusters.DishwasherMode
4444

4545

4646
class TC_DISHM_1_2(MatterBaseTest, ModeBaseClusterChecks):
4747

4848
def __init__(self, *args):
4949
MatterBaseTest.__init__(self, *args)
5050
ModeBaseClusterChecks.__init__(self,
51-
modebase_derived_cluster=CLUSTER)
51+
modebase_derived_cluster=cluster_dishm_mode)
5252

5353
def desc_TC_DISHM_1_2(self) -> str:
5454
return "[TC-DISHM-1.2] Cluster attributes with DUT as Server"
@@ -81,13 +81,13 @@ async def test_TC_DISHM_1_2(self):
8181
# According to the spec, there should be at least one like
8282
# Normal, Heavy, or Light
8383
# tag in the ones supported.
84-
additional_tags = [CLUSTER.Enums.ModeTag.kNormal,
85-
CLUSTER.Enums.ModeTag.kHeavy]
84+
additional_tags = [cluster_dishm_mode.Enums.ModeTag.kNormal,
85+
cluster_dishm_mode.Enums.ModeTag.kHeavy]
8686
self.check_tags_in_lists(supported_modes=supported_modes, required_tags=additional_tags)
8787

8888
self.step(3)
8989
# Verify that the CurrentMode attribute has a valid value.
90-
mode = self.cluster.Attributes.CurrentMode
90+
mode = cluster_dishm_mode.Attributes.CurrentMode
9191
await self.read_and_check_mode(endpoint=endpoint, mode=mode, supported_modes=supported_modes)
9292

9393

0 commit comments

Comments
 (0)