test(download): define blacklist state in credential fixtures

This commit is contained in:
jxxghp
2026-10-13 22:03:05 +08:00
parent c4cd6c8ac4
commit 64e970215b

View File

@@ -29,6 +29,7 @@ def boundary(monkeypatch):
chain.site_repository.list.return_value = [SITE]
chain.post_message = Mock()
helper = Mock()
helper.is_invalid.return_value = False
helper.download_torrent.return_value = CONTENT
monkeypatch.setattr(submission, "TorrentHelper", Mock(return_value=helper))
return chain, helper