mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-12-01 16:36:28 +08:00
test(transfer): restore the downloader history repository after use (#7642)
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user