test: increase backup_tasks.py coverage to 99.79%
Add comprehensive tests covering all previously untested code paths in app/tasks/backup_tasks.py, raising coverage from 66.39% to 99.79%. New test classes: - TestDumpPostgresqlBranches / TestDumpMysqlBranches: URL branches - TestRestoreSqliteBranches: error paths and rollback scenarios - TestRestorePostgresqlBranches / TestRestoreMysqlBranches: URL branches - TestApplyRetentionOSError: OSError on file removal + remote record keeping - TestPruneRemoteBackups: full pruning lifecycle - TestDeleteRemoteCopy: S3, Dropbox, known/unknown destinations - TestUploadRemote: all destination branches (S3, Dropbox, email, Nextcloud, WebDAV) - TestEmailBackup: recipient error, TLS, no-auth paths - TestCreateBackupAdditional: dump failure, remote upload, PG/MySQL failures - TestCleanupOldBackupsTask: validates all tiers are processed Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in: