|
40 | 40 | from chip.testing.matter_testing import MatterBaseTest, TestStep, async_test_body, default_matter_test_main
|
41 | 41 | from modebase_cluster_check import ModeBaseClusterChecks
|
42 | 42 |
|
43 |
| -CLUSTER = Clusters.DishwasherMode |
| 43 | +cluster_dishm_mode = Clusters.DishwasherMode |
44 | 44 |
|
45 | 45 |
|
46 | 46 | class TC_DISHM_1_2(MatterBaseTest, ModeBaseClusterChecks):
|
47 | 47 |
|
48 | 48 | def __init__(self, *args):
|
49 | 49 | MatterBaseTest.__init__(self, *args)
|
50 | 50 | ModeBaseClusterChecks.__init__(self,
|
51 |
| - modebase_derived_cluster=CLUSTER) |
| 51 | + modebase_derived_cluster=cluster_dishm_mode) |
52 | 52 |
|
53 | 53 | def desc_TC_DISHM_1_2(self) -> str:
|
54 | 54 | return "[TC-DISHM-1.2] Cluster attributes with DUT as Server"
|
@@ -81,13 +81,13 @@ async def test_TC_DISHM_1_2(self):
|
81 | 81 | # According to the spec, there should be at least one like
|
82 | 82 | # Normal, Heavy, or Light
|
83 | 83 | # 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] |
86 | 86 | self.check_tags_in_lists(supported_modes=supported_modes, required_tags=additional_tags)
|
87 | 87 |
|
88 | 88 | self.step(3)
|
89 | 89 | # Verify that the CurrentMode attribute has a valid value.
|
90 |
| - mode = self.cluster.Attributes.CurrentMode |
| 90 | + mode = cluster_dishm_mode.Attributes.CurrentMode |
91 | 91 | await self.read_and_check_mode(endpoint=endpoint, mode=mode, supported_modes=supported_modes)
|
92 | 92 |
|
93 | 93 |
|
|
0 commit comments