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". |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| fake_hidpp.py | ||
| test_base.py | ||
| test_base_usb.py | ||
| test_common.py | ||
| test_desktop_notifications.py | ||
| test_device.py | ||
| test_diversion.py | ||
| test_hidpp10.py | ||
| test_hidpp20_complex.py | ||
| test_hidpp20_simple.py | ||
| test_notifications.py | ||
| test_receiver.py | ||
| test_rgb_power.py | ||
| test_setting_templates.py | ||
| test_settings_validator.py | ||