Skip to content

Commit 4b996cd

Browse files
committed
tests: Address Copilot review on PR #112.
1 parent 2e2c2b1 commit 4b996cd

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

tests/scenarios/wsen_pads.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ tests:
5555
- name: "Read temperature returns float"
5656
action: call
5757
method: temperature
58-
expect: 25.0
58+
expect_range: [24.9, 25.1]
5959
mode: [mock]
6060

6161
- name: "Temperature with offset"
@@ -74,6 +74,15 @@ tests:
7474
expect_range: [19.0, 21.0]
7575
mode: [mock]
7676

77+
- name: "Read applies temperature calibration"
78+
action: script
79+
script: |
80+
dev.set_temp_offset(-2.0)
81+
_, temp = dev.read()
82+
result = temp
83+
expect_range: [22.0, 24.0]
84+
mode: [mock]
85+
7786
- name: "Pressure in plausible range"
7887
action: call
7988
method: pressure

0 commit comments

Comments
 (0)