Files
Tunetti/tests/test_player_helpers.py
NikkeDoy 37d4a7d47e
All checks were successful
SonarQube Code Quality Scan / SonarQube Scan (push) Successful in 1m46s
🐛 | Make SearchWorker tests robust to Qt fallback environments
Replace SearchWorker signal .connect() with mock.MagicMock to handle
the case where the player module Signal binding is a plain function
(import fallback when PySide6 is unavailable in headless CI).
The MagicMock captures .emit() calls and works across all environments:
real Qt, conftest stubs, and player.py fallback paths.
2026-06-04 21:42:11 +03:00

14 KiB