myYouTube/tests
vrubelroman 62f8fb746b Fix delete not finding the download: wrong id sent to MeTube's /delete
MeTube's queue/pending/done stores are keyed by the download's URL
(PersistentQueue.put: key = value.info.url), not by the id field a Download
reports over Socket.IO (which is what we stored as metube_job_id and were
sending). Sending the wrong key made MeTube's clear()/cancel() silently
no-op ("requested delete for non-existent download" in its own logs) while
still returning {"status": "ok"} regardless -- confirmed live by curling
/history on the real instance and finding the "deleted" entry still
present, unrelated to the DELETE_FILE_ON_TRASHCAN config fix that came
right before this.

delete_download() now takes the video's canonical youtube_url instead.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-16 20:14:43 +00:00
..
conftest.py Implement Phases 1-5: skeleton, OAuth, categories, video sync/feed, playback 2026-09-16 18:44:30 +00:00
test_auth.py Implement Phase 6: MeTube download integration 2026-09-16 18:56:17 +00:00
test_categories.py Implement Phase 6: MeTube download integration 2026-09-16 18:56:17 +00:00
test_channels.py Add delete-downloaded-video and real YouTube unsubscribe 2026-09-16 19:47:35 +00:00
test_download_jobs.py Fix download status flapping: only the 'completed' event is terminal 2026-09-16 19:09:18 +00:00
test_duration.py Implement Phases 1-5: skeleton, OAuth, categories, video sync/feed, playback 2026-09-16 18:44:30 +00:00
test_feed.py Implement Phase 6: MeTube download integration 2026-09-16 18:56:17 +00:00
test_health.py Implement Phase 6: MeTube download integration 2026-09-16 18:56:17 +00:00
test_metube_client.py Implement Phase 6: MeTube download integration 2026-09-16 18:56:17 +00:00
test_sync.py Add delete-downloaded-video and real YouTube unsubscribe 2026-09-16 19:47:35 +00:00
test_videos.py Fix delete not finding the download: wrong id sent to MeTube's /delete 2026-09-16 20:14:43 +00:00
test_youtube_client.py Add delete-downloaded-video and real YouTube unsubscribe 2026-09-16 19:47:35 +00:00