From 20c2677237a17dad46fbb7cc8e5ebcc038ca94f8 Mon Sep 17 00:00:00 2001 From: Jacques Gagnon Date: Thu, 28 Sep 2023 21:55:56 -0400 Subject: [PATCH] [TESTS] Fix HID keyboard test --- tests/pytest_hid_keyboard.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/pytest_hid_keyboard.py b/tests/pytest_hid_keyboard.py index c078974e..fdfb552a 100644 --- a/tests/pytest_hid_keyboard.py +++ b/tests/pytest_hid_keyboard.py @@ -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