1. 01 Oct, 2020 1 commit
  2. 06 Jul, 2020 1 commit
    • Benjamin Tissoires's avatar
      tests: fix imports · 9a041eef
      Benjamin Tissoires authored
      commit 28d0b730 ("doc: Generate docs for the test suite as well")
      introduced the file `tests/__init__.py` which turned the tests folder
      into a python module.
      
      Problem is that the implicit relative imports do not work anymore,
      and pytest was failing with:
      ```
      ImportError while loading conftest 'hid-tools/tests/conftest.py'.
      tests/conftest.py:24: in <module>
          from base import create_udev_rule, teardown_udev_rule
      E   ModuleNotFoundError: No module named 'base'
      ```
      
      Fix the local imports by using relative imports
      Signed-off-by: Benjamin Tissoires's avatarBenjamin Tissoires <benjamin.tissoires@gmail.com>
      9a041eef
  3. 01 Jul, 2020 1 commit
  4. 05 Jun, 2020 3 commits
  5. 04 Jun, 2020 1 commit
    • Jason Gerecke's avatar
      Fix various warnings reported by flake8 · af7a79ed
      Jason Gerecke authored
      ./tests/test_cli_decode.py:44:56: F541 f-string is missing placeholders
      ./tests/test_cli_decode.py:88:12: F541 f-string is missing placeholders
      ./tests/test_cli_decode.py:95:42: F541 f-string is missing placeholders
      ./tests/test_cli_decode.py:96:42: F541 f-string is missing placeholders
      ./tests/test_cli_decode.py:222:52: F541 f-string is missing placeholders
      ./tests/test_cli_decode.py:232:52: F541 f-string is missing placeholders
      ./tests/base.py:30:1: E402 module level import not at top of file
      ./tests/base.py:33:1: E402 module level import not at top of file
      ./tests/base.py:77:35: F541 f-string is missing placeholders
      ./tests/base.py:83:23: F541 f-string is missing placeholders
      Signed-off-by: Jason Gerecke's avatarJason Gerecke <jason.gerecke@wacom.com>
      af7a79ed
  6. 03 Apr, 2020 3 commits
  7. 30 Mar, 2020 2 commits
  8. 14 Mar, 2020 3 commits
    • José Torreguitar's avatar
      Refactor replay to use known devices · 8d4723f0
      José Torreguitar authored
      If there is a specific class already created for the device being
      replayed then assign it from that list. This helps for devices which
      do not use /dev/input nodes, which hangs the program. The device with
      which this has been tested so far is the dual shock 3 controller. This
      solves the problem of the /dev/hidraw device not being destroyed when
      rpelay hangs.
      8d4723f0
    • José Torreguitar's avatar
      Refactored __init__ in replay.py · 5e0b488b
      José Torreguitar authored
      Added to init a local definition of devices and an array into which to
      store the read device information, postponing creation for after the
      parsing is done. This allows for the hidtools.uhid.UHIDDevice() to be
      replaced by any other factory method in the future.
      5e0b488b
    • José Torreguitar's avatar
      separated devices from tests · b49689ef
      José Torreguitar authored
      devices now have their own separate module under hidtools/devices
      
      
      [bentiss: fix flake8 warnings]
      Signed-off-by: Benjamin Tissoires's avatarBenjamin Tissoires <benjamin.tissoires@gmail.com>
      b49689ef
  9. 11 Feb, 2020 4 commits
  10. 07 Feb, 2020 4 commits
  11. 06 Feb, 2020 13 commits
  12. 03 Feb, 2020 2 commits
  13. 31 Jan, 2020 2 commits