From d995af0136f2dd31b8db74432dd6f34aca329235 Mon Sep 17 00:00:00 2001 From: Aqr-K <95741669+Aqr-K@users.noreply.github.com> Date: Sat, 28 Nov 2026 08:33:20 +0800 Subject: [PATCH] test(transfer): restore the downloader history repository after use (#7642) --- tests/integration/music/test_music_transfer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/integration/music/test_music_transfer.py b/tests/integration/music/test_music_transfer.py index 3e0101cbc..1153c009c 100644 --- a/tests/integration/music/test_music_transfer.py +++ b/tests/integration/music/test_music_transfer.py @@ -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",