Skip to content

Commit d246fdc

Browse files
committed
apds9960: Split device ID test for mock and hardware modes.
1 parent acfb9b6 commit d246fdc

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

tests/scenarios/apds9960.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,18 @@ mock_registers:
4040
0x9C: 0x50
4141

4242
tests:
43-
- name: "Verify device ID register"
43+
- name: "Verify device ID register (mock)"
4444
action: call
4545
method: _read_byte_data
4646
args: [0x92]
4747
expect: 0xAB
48-
mode: [mock, hardware]
48+
mode: [mock]
49+
50+
- name: "Verify device ID register (hardware)"
51+
action: read_register
52+
register: 0x92
53+
expect: 0xAB
54+
mode: [hardware]
4955

5056
- name: "Read ambient light returns expected value"
5157
action: call

0 commit comments

Comments
 (0)