@@ -141,7 +141,7 @@ tests:
141141
142142 - name : " Temperature returns 25.0 from mock data"
143143 action : call
144- method : temperature_c
144+ method : temperature
145145 expect_range : [24.9, 25.1]
146146 mode : [mock]
147147
@@ -156,15 +156,15 @@ tests:
156156 action : script
157157 script : |
158158 dev.set_temp_offset(-2.5)
159- result = abs(dev.temperature_c () - 22.5) < 0.1
159+ result = abs(dev.temperature () - 22.5) < 0.1
160160 expect_true : true
161161 mode : [mock]
162162
163163 - name : " Temperature with two-point calibration"
164164 action : script
165165 script : |
166166 dev.calibrate_temperature(20.0, 25.0, 30.0, 35.0)
167- result = dev.temperature_c ()
167+ result = dev.temperature ()
168168 expect_range : [19.0, 21.0]
169169 mode : [mock]
170170
@@ -181,7 +181,7 @@ tests:
181181
182182 - name : " Temperature in plausible range"
183183 action : call
184- method : temperature_c
184+ method : temperature
185185 expect_range : [10.0, 50.0]
186186 mode : [hardware]
187187
@@ -328,7 +328,7 @@ tests:
328328 action : script
329329 script : |
330330 dev.power_off()
331- t = dev.temperature_c ()
331+ t = dev.temperature ()
332332 result = isinstance(t, float)
333333 expect_true : true
334334 mode : [mock]
@@ -410,7 +410,7 @@ tests:
410410 action : script
411411 script : |
412412 dev.power_off()
413- t = dev.temperature_c ()
413+ t = dev.temperature ()
414414 result = 10.0 < t < 50.0
415415 expect_true : true
416416 mode : [hardware]
@@ -426,7 +426,7 @@ tests:
426426 - method : gyroscope_dps
427427 label : " Gyroscope (dps)"
428428 unit : " "
429- - method : temperature_c
429+ - method : temperature
430430 label : " Temperature"
431431 unit : " °C"
432432 - method : orientation
0 commit comments