test(transfer): restore the downloader history repository after use (#7642)

This commit is contained in:
Aqr-K
2026-11-28 08:33:20 +08:00
committed by GitHub
parent a749aa0bb4
commit d995af0136

View File

@@ -1298,9 +1298,9 @@ def test_downloader_process_forwards_music_history_type(tmp_path, monkeypatch):
)
],
)
chain.download_history_repository = SimpleNamespace(
get_by_hash=lambda download_hash: history
)
monkeypatch.setattr(chain, "download_history_repository", SimpleNamespace(
get_by_hash=lambda download_hash: history,
))
monkeypatch.setattr(
chain,
"list_torrents",