Skip to content

Commit

Permalink
Switch the basic information constraints as a set compare (use python)
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 committed Feb 3, 2025
1 parent 4729074 commit 26e33d8
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions src/app/tests/suites/TestBasicInformation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ tests:
command: "readAttribute"
attribute: "AttributeList"
response:
value: [
constraints:
python: |
return set(value) == {
0,
1,
2,
Expand All @@ -80,20 +82,23 @@ tests:
20,
21,
22,
0xFFFC, # FeatureMap
0xFFFD, # ClusterRevision
0xFFF8, # GeneratedCommandList
0xFFF9, # AcceptedCommandList
0xFFFA, # EventList
0xFFFB, # AttributeList
]
0xFFFC, # FeatureMap
0xFFFD, # ClusterRevision
}
- label: "Read AttributeList value"
PICS: "!PICS_EVENT_LIST_ENABLED"
command: "readAttribute"
attribute: "AttributeList"
response:
value: [
constraints:
python: |
return set(value) == {
0,
1,
2,
Expand All @@ -116,12 +121,12 @@ tests:
20,
21,
22,
0xFFFC, # FeatureMap
0xFFFD, # ClusterRevision
0xFFF8, # GeneratedCommandList
0xFFF9, # AcceptedCommandList
0xFFFB, # AttributeList
]
0xFFFC, # FeatureMap
0xFFFD, # ClusterRevision
}
- label: "Read NodeLabel"
command: "readAttribute"
Expand Down

0 comments on commit 26e33d8

Please sign in to comment.