Solaar/tests/solaar/ui
Ken Sanislo 4c709ecb73 tests: mock the libnotify backend so the suite raises no real notifications
The desktop_notifications tests called the real init/alert/show, which
reach the libnotify daemon — every test run popped real GNOME
notifications titled "MockDevice" and "unknown".

Add an autouse conftest fixture that swaps Notify for a mock in both
desktop_notifications modules (solaar.ui and logitech_receiver). The
tests still exercise the real init/alert/show code paths, but
Notification.show() never reaches the daemon. The fixture returns the
mock; the notification tests now assert show() was actually dispatched
against it, so they verify the path instead of just "didn't crash".
2026-05-21 10:15:12 -04:00
..
test_about_dialog.py ui/about: Use Model-View-Presenter pattern for testability 2024-10-11 07:42:38 -04:00
test_common.py Introduce error types 2025-01-02 08:29:32 -05:00
test_desktop_notifications.py tests: mock the libnotify backend so the suite raises no real notifications 2026-05-21 10:15:12 -04:00
test_i18n.py solaar: clean up locale code 2024-06-01 12:09:55 -04:00
test_pair_window.py test_pair_window: Simplify tests by cleaning up receiver mock (#2899) 2025-12-10 10:50:07 -05:00
test_probe.py refactor: replace ERROR NamedInts by IntEnum (#2645) 2024-11-02 10:17:50 -04:00