From 0eb0aeddacaa5eb5d6ccb8f70ef4d5fb9d2880e8 Mon Sep 17 00:00:00 2001 From: Jacques Gagnon Date: Tue, 24 Oct 2023 22:22:03 -0400 Subject: [PATCH] [TESTS] Fixup HID tests --- tests/pytest_hid_controller_a.py | 2 -- tests/pytest_hid_controller_b.py | 2 -- tests/pytest_hid_keyboard.py | 4 ---- 3 files changed, 8 deletions(-) diff --git a/tests/pytest_hid_controller_a.py b/tests/pytest_hid_controller_a.py index 41d7f911..ba6ba6ce 100644 --- a/tests/pytest_hid_controller_a.py +++ b/tests/pytest_hid_controller_a.py @@ -29,8 +29,6 @@ def test_hid_controller_a_descriptor(blueretro): assert report["usages"][2]["bit_offset"] == 16 assert report["usages"][2]["bit_size"] == 32 assert report["report_type"] == 2 - assert report["device_type"] == 0 - assert report["device_subtype"] == 0 def test_hid_controller_a_default_buttons_mapping(blueretro): diff --git a/tests/pytest_hid_controller_b.py b/tests/pytest_hid_controller_b.py index 5f1c94d3..c3461b03 100644 --- a/tests/pytest_hid_controller_b.py +++ b/tests/pytest_hid_controller_b.py @@ -78,8 +78,6 @@ def test_hid_controller_b_descriptor(blueretro): assert report["usages"][7]["bit_size"] == 16 assert report["report_type"] == report_type.PAD - assert report["device_type"] == bt_type.HID_GENERIC - assert report["device_subtype"] == bt_subtype.SUBTYPE_DEFAULT def test_hid_controller_b_default_buttons_mapping(blueretro): diff --git a/tests/pytest_hid_keyboard.py b/tests/pytest_hid_keyboard.py index fdfb552a..e4f33cda 100644 --- a/tests/pytest_hid_keyboard.py +++ b/tests/pytest_hid_keyboard.py @@ -26,8 +26,6 @@ def test_hid_keyboard_descriptor(blueretro): 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 @@ -38,5 +36,3 @@ def test_hid_keyboard_descriptor(blueretro): assert report["usages"][0]["usage_page"] == 0x0C assert report["usages"][0]["usage"] == 0x1B1 assert report["report_type"] == 3 - assert report["device_type"] == -1 - assert report["device_subtype"] == 0