15
15
# limitations under the License.
16
16
#
17
17
18
- # See https://github.com/project-chip/connectedhomeip/blob/master/docs/testing/python.md#defining-the-ci-test-arguments
19
- # for details about the block below.
20
- #
21
- # FIXME: https://github.com/project-chip/connectedhomeip/issues/36885
22
18
# === BEGIN CI TEST ARGUMENTS ===
23
19
# test-runner-runs:
24
20
# run1:
25
- # app: ${CHIP_MICROWAVE_OVEN_APP}
26
- # app-args: --discriminator 1234 --KVS kvs1 --trace-to json:${TRACE_APP}.json
21
+ # app: ${ALL_CLUSTERS_APP}
22
+ # app-args: >
23
+ # --discriminator 1234
24
+ # --KVS kvs1
25
+ # --trace-to json:${TRACE_APP}.json
27
26
# script-args: >
28
27
# --storage-path admin_storage.json
29
28
# --commissioning-method on-network
30
29
# --discriminator 1234
31
30
# --passcode 20202021
32
- # --PICS src/app/tests/suites/certification/ci-pics-values
33
31
# --endpoint 1
34
32
# --trace-to json:${TRACE_TEST_JSON}.json
35
33
# --trace-to perfetto:${TRACE_TEST_PERFETTO}.perfetto
36
34
# factory-reset: true
37
35
# quiet: true
38
36
# === END CI TEST ARGUMENTS ===
39
37
40
- import logging
41
38
42
39
import chip .clusters as Clusters
43
40
from chip .testing .matter_testing import MatterBaseTest , TestStep , async_test_body , default_matter_test_main
44
41
from modebase_cluster_check import ModeBaseClusterChecks
45
42
46
- logger = logging .getLogger (__name__ )
47
-
48
43
CLUSTER = Clusters .EnergyEvseMode
49
44
50
45
@@ -63,8 +58,6 @@ def steps_TC_EEVSEM_1_2(self) -> list[TestStep]:
63
58
TestStep (1 , "Commissioning, already done" , is_commissioning = True ),
64
59
TestStep (2 , "TH reads from the DUT the SupportedModes attribute." ),
65
60
TestStep (3 , "TH reads from the DUT the CurrentMode attribute." ),
66
- # TestStep(4, "TH reads from the DUT the OnMode attribute."),
67
- # TestStep(5, "TH reads from the DUT the StartUpMode attribute.")
68
61
]
69
62
return steps
70
63
@@ -85,10 +78,9 @@ async def test_TC_EEVSEM_1_2(self):
85
78
self .step (2 )
86
79
# Verify common checks for Mode Base as described in the TC-EEVSEM-1.2
87
80
supported_modes = await self .check_supported_modes_and_labels (endpoint = endpoint )
88
- logger .info (f'Step #2: supported_modes({ supported_modes } )' )
89
81
90
- # According to the spec, there should be at least one Manual or Time of Use tag in
91
- # the ones supported.
82
+ # According to the spec, there should be at least one Manual or Time of Use
83
+ # tag in the ones supported.
92
84
additional_tags = [CLUSTER .Enums .ModeTag .kManual ,
93
85
CLUSTER .Enums .ModeTag .kTimeOfUse ]
94
86
self .check_tags_in_lists (supported_modes = supported_modes , required_tags = additional_tags )
@@ -97,19 +89,6 @@ async def test_TC_EEVSEM_1_2(self):
97
89
# Verify that the CurrentMode attribute has a valid value.
98
90
mode = self .cluster .Attributes .CurrentMode
99
91
await self .read_and_check_mode (endpoint = endpoint , mode = mode , supported_modes = supported_modes )
100
- logger .info (f'Step #4: cluster Attributes({ vars (self .cluster .Attributes )} )' )
101
-
102
- # self.step(4)
103
- # # Verify that the OnMode attribute has a valid value or null.
104
- # mode = self.cluster.Attributes.OnMode
105
- # await self.read_and_check_mode(endpoint=endpoint, mode=mode,
106
- # supported_modes=supported_modes, is_nullable=True)
107
-
108
- # self.step(5)
109
- # # Verify that the StartUpMode has a valid value or null
110
- # mode = self.cluster.Attributes.StartUpMode
111
- # await self.read_and_check_mode(endpoint=endpoint, mode=mode,
112
- # supported_modes=supported_modes, is_nullable=True)
113
92
114
93
115
94
if __name__ == "__main__" :
0 commit comments