Skip to content

Commit 5fc7208

Browse files
committed
test(wsen-hids): Add hardware test for power cycle read_one_shot.
1 parent 3f42ec4 commit 5fc7208

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

tests/scenarios/wsen_hids.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,18 @@ tests:
136136
expect_true: true
137137
mode: [mock]
138138

139+
- name: "Read one-shot after power cycle (hardware)"
140+
action: script
141+
script: |
142+
from time import sleep_ms
143+
dev.power_off()
144+
sleep_ms(50)
145+
dev.power_on()
146+
h, t = dev.read_one_shot()
147+
result = 10.0 < h < 90.0 and 10.0 < t < 50.0
148+
expect_true: true
149+
mode: [hardware]
150+
139151
- name: "Temperature with offset"
140152
action: script
141153
script: |

0 commit comments

Comments
 (0)