MattHag
f28a923d15
receiver: Test extraction of serial and max. devices
...
Related #2273
2025-01-01 12:52:33 -05:00
MattHag
41768d9616
Test receiver notification info
2025-01-01 10:14:10 -05:00
MattHag
691e5878f9
Remove obsolete pytest fixture
2024-10-11 07:42:38 -04:00
MattHag
cba3533869
Remove factory wrapper classes
...
A module level function is sufficient, no wrapper needed.
2024-10-11 07:42:38 -04:00
MattHag
ef6b7dec2c
receiver: Remove hard dependency on base
...
With this test all receiver tests are macOS compatible again. The low
level interface supports passing a fake API for unit tests.
2024-10-11 07:42:38 -04:00
MattHag
1729189981
base: Add find_paired_node functions
...
Avoid direct access to hidapi and use the base module as low-level API
instead. This change replaces the remaining calls to find_paired_node
and find_paired_node_wpid by exposing them via base module.
2024-10-11 07:42:38 -04:00
MattHag
46fafa0e68
hidapi: Explicitly load hidapi/udev implementation
...
Linux uses udev, other platforms use the cross-platform hidapi
implementation. Remove implicit loading of hidapi in hidapi/__init__.py.
2024-10-11 07:42:38 -04:00
MattHag
99fc9c6fcb
receiver: Remove hard dependency on hidapi
2024-10-11 07:42:38 -04:00
MattHag
741c0861c2
Clarify that fake hidpp is used
...
This module shouldn't be necessary on the long run. Remove pieces from
it whenever possible.
2024-10-08 14:35:16 -04:00
MattHag
500b9998c5
Fix macOS compatibility and reenable CI tests
...
* Fix CI for macOS
* Fix error message for missing hidapi
* Skip some device and receiver tests on macOS
Tests fail on macOS, enable them when unit tests are
refined to only test the module without dependencies.
* Safe guard dbus import
2024-05-22 18:45:40 -04:00
Peter F. Patel-Schneider
6c67789bad
tests: extend device testing
2024-04-13 18:38:44 -04:00
Peter F. Patel-Schneider
10e3f844dd
tests: use hidpp module in several test modules
2024-03-23 08:26:12 -04:00
Peter F. Patel-Schneider
871322bf68
tests: improve coverage of receiver.py
2024-03-16 16:24:33 -04:00
Matthias Hagmann
5b09ace1f5
ruff: Apply single line import format
...
# Usage
pre-commit run --all-files
Related #2295
2024-03-13 15:41:21 -04:00
Matthias Hagmann
7ec3eddccc
test: Extract get_kind_from_index function and test it
...
Pull get_kind_from_index from class to module level and add tests.
Related #1097
2024-03-10 09:20:39 -04:00