mirror of https://github.com/Nezreka/SoulSync.git
dev
main
fix/usenet-album-poll-sab-handoff
fix/quarantine-source-dedup
release/2.5.3
fix/disable-beatport-features
johnbaumb-discover-redesign
1.0
1.1
1.2
1.3
1.4
1.5
1.6
1.7
1.8
1.9
2.0
2.1
2.2
2.3
2.4.0
2.4.1
2.4.2
2.5.0
2.5.1
2.5.2
2.5.3
2.5.4
2.5.5
2.5.6
2.5.7
2.5.9
2.6.0
2.6.1
2.6.2
2.6.3
v0.65
${ noResults }
1 Commits (048e4e85d5ceb6bbb9f6a6d2b2efbc259cc331ff)
| Author | SHA1 | Message | Date |
|---|---|---|---|
|
|
e4ca56b499 |
test: cover Prowlarr + torrent + usenet adapters
54 mocked unit tests pinning the parse + dispatch behavior of the new indexer and downloader plumbing. No live services required — HTTP is mocked at the requests-library boundary, RPC is mocked at the _rpc_sync helper. Coverage: - core/prowlarr_client.py: parse_indexer / parse_result with category-shape variants, search query encodes repeated ``categories=`` and ``indexerIds=`` keys, check_connection hits the right endpoint with the right header. - core/torrent_clients/qbittorrent.py: login sends the Referer CSRF header, login failure surfaces, parse_status normalises field names, eta <= 0 becomes None. - core/torrent_clients/transmission.py: bare host URL is rewritten to /transmission/rpc, 409 + X-Transmission-Session-Id is renegotiated and the retry carries the new id, torrent-add surfaces torrent-duplicate hashes, eta -1 becomes None. - core/torrent_clients/deluge.py: requires password to be configured, magnet vs HTTP URL hit different RPC methods, progress is normalised from 0-100 to 0-1. - core/usenet_clients/sabnzbd.py: parse_timeleft handles HH:MM:SS and the MM:SS fallback, queue + history merge into a single get_all, addurl vs addfile are dispatched on the input type. - core/usenet_clients/nzbget.py: requires URL + username + password, mb_value prefers the 64-bit size split over the legacy MB field, add_nzb base64-encodes raw bytes, GroupFinalDelete vs GroupDelete is picked by the delete_files flag, non-numeric job IDs fail fast. - state mapping tables for all five adapters get explicit assertions so future refactors can't silently lose a native state value. WHATS_NEW entry covers the test addition; no VERSION_MODAL_SECTIONS entry — internal infrastructure, not user-facing. |
1 week ago |