1 Commits

Author SHA1 Message Date
root bfd5269ff7 test: Add comprehensive tests for delete and restore features
Added 8 new tests for the delete_task and download restoration features:

TestDeleteTask (8 tests):
- test_delete_task_removes_from_dict: Verifies task removal from dict
- test_delete_task_completed_keeps_file: Ensures completed files are preserved
- test_delete_task_pending_deletes_file: Confirms pending files are deleted
- test_delete_task_downloading_deletes_file: Confirms downloading files are deleted
- test_delete_task_nonexistent: Tests graceful handling of nonexistent tasks
- test_delete_task_with_active_download: Verifies active downloads are cancelled
- test_delete_task_cancelled_status: Tests cancelled status task removal
- test_delete_task_failed_status: Tests failed status task removal

All tests passing (8/8) - 100% success rate

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-01-23 11:33:00 +00:00