You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add automated tests for code paths added during Python 3.12 migration bug fixes. These areas currently lack test coverage and caused regressions during manual testing.
17
+
18
+
## Acceptance Criteria
19
+
<!-- AC:BEGIN -->
20
+
-[ ]#1 Add E2E test: Media key with empty queue populates from library view
title: Add unit tests for PlayerEventHandlers class
4
+
status: In Progress
5
+
assignee: []
6
+
created_date: '2025-10-26 04:51'
7
+
updated_date: '2025-10-26 04:54'
8
+
labels: []
9
+
dependencies: []
10
+
priority: medium
11
+
ordinal: 2250
12
+
---
13
+
14
+
## Description
15
+
16
+
PlayerEventHandlers has 0% test coverage despite handling all user interactions (search, delete, drag-drop, favorites). Add comprehensive unit tests for core interaction methods.
17
+
18
+
## Acceptance Criteria
19
+
<!-- AC:BEGIN -->
20
+
-[ ]#1 Add unit tests for handle_delete() method (87 lines)
21
+
-[ ]#2 Add unit tests for handle_drop() drag-and-drop functionality (92 lines)
22
+
-[ ]#3 Add unit tests for perform_search() and clear_search()
23
+
-[ ]#4 Add unit tests for toggle_favorite() method
24
+
-[ ]#5 Add unit tests for on_track_change() callback logic
25
+
-[ ]#6 Achieve >80% coverage for PlayerEventHandlers class
title: Increase PlayerCore test coverage from 29% to 50%+
4
+
status: In Progress
5
+
assignee: []
6
+
created_date: '2025-10-26 04:51'
7
+
updated_date: '2025-10-26 04:54'
8
+
labels: []
9
+
dependencies: []
10
+
priority: medium
11
+
ordinal: 3000
12
+
---
13
+
14
+
## Description
15
+
16
+
PlayerCore currently has only 29% test coverage (103/357 lines tested). Key untested areas include track-end handling, play count tracking, and media event callbacks. Improve coverage to at least 50%.
17
+
18
+
## Acceptance Criteria
19
+
<!-- AC:BEGIN -->
20
+
-[ ]#1 Add unit tests for _handle_track_end() loop/shuffle logic
21
+
-[ ]#2 Add unit tests for _update_play_count() play count tracking
22
+
-[ ]#3 Add unit tests for track navigation edge cases (empty queue, single track, etc.)
23
+
-[ ]#4 Add unit tests for media event callbacks (MediaEnded, MediaPaused, etc.)
24
+
-[ ]#5 Add property-based tests for queue navigation invariants
25
+
-[ ]#6 Achieve >50% coverage for core/controls/player_core.py
0 commit comments