Skip to content

Commit

Permalink
[TESTS] Fixup HID tests
Browse files Browse the repository at this point in the history
  • Loading branch information
darthcloud committed Oct 25, 2023
1 parent 2da16f8 commit 0eb0aed
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions tests/pytest_hid_controller_a.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 0 additions & 2 deletions tests/pytest_hid_controller_b.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
4 changes: 0 additions & 4 deletions tests/pytest_hid_keyboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 0eb0aed

Please sign in to comment.