Solaar/tests/logitech_receiver
MattHag 1afcfe4b57
refactor: use IntEnum for firmware and cidgroup constances
* Refactor: test_named_ints_flag_names

Shorten test and clarify behavior using binary numbers.

* Introduce plain flag_names function

This replicates the NamedInts functionality as plain function.

* Refactor FeatureFlag to use IntFlag

Replace NamedInts implementation with IntFlag enum and plain flag_names
function.

Related #2273

* Refactor FirmwareKind to use IntEnum

- Move general FirmwareKind to common module.
- Replace NamedInts implementation with IntEnum.
- Harden related HIDPP 1.0 get_firmware test.

Related #2273

* Refactor CID_GROUP, CID_GROUP_BIT to use IntEnum

Related #2273
2024-10-23 16:25:35 -04:00
..
__init__.py tests: Add tests of common module 2024-02-18 06:10:53 -05:00
fake_hidpp.py Refactor: Introduce Feature enum 2024-10-14 07:28:09 -04:00
test_base.py change pairing error values to intenums 2024-10-23 16:22:22 -04:00
test_common.py refactor: use IntEnum for firmware and cidgroup constances 2024-10-23 16:25:35 -04:00
test_desktop_notifications.py Make lr/desktop_notifications testable 2024-10-08 14:35:16 -04:00
test_device.py Remove factory wrapper classes 2024-10-11 07:42:38 -04:00
test_diversion.py Refactor: Introduce Feature enum 2024-10-14 07:28:09 -04:00
test_hidpp10.py refactor: use IntEnum for firmware and cidgroup constances 2024-10-23 16:25:35 -04:00
test_hidpp20_complex.py refactor: use IntEnum for firmware and cidgroup constances 2024-10-23 16:25:35 -04:00
test_hidpp20_simple.py refactor: use IntEnum for firmware and cidgroup constances 2024-10-23 16:25:35 -04:00
test_notifications.py change pairing error values to intenums 2024-10-23 16:22:22 -04:00
test_receiver.py Remove obsolete pytest fixture 2024-10-11 07:42:38 -04:00
test_setting_templates.py Refactor: Introduce Feature enum 2024-10-14 07:28:09 -04:00
test_settings.py settings: Add tests 2024-10-11 07:42:38 -04:00