Skip to content

Commit

Permalink
[TESTS] Fix HID keyboard test
Browse files Browse the repository at this point in the history
  • Loading branch information
darthcloud committed Sep 29, 2023
1 parent dbd71dc commit 20c2677
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/pytest_hid_keyboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,16 @@ def test_hid_keyboard_descriptor(blueretro):

report = blueretro.expect_json('parsed_hid_report')
assert report["report_id"] == 1
assert report["usages"][7]["bit_offset"] == 64
assert report["report_tag"] == 0
assert report["usages"][6]["bit_offset"] == 56
assert report["report_type"] == 0
assert report["device_type"] == 0
assert report["device_subtype"] == 0

report = blueretro.expect_json('parsed_hid_report')
assert report["report_id"] == 1
assert report["report_tag"] == 1

report = blueretro.expect_json('parsed_hid_report')
assert report["report_id"] == 2
assert report["usages"][0]["usage_page"] == 0x0C
Expand Down

0 comments on commit 20c2677

Please sign in to comment.