mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-07-11 14:36:56 +08:00
test: satisfy mypy for torrent manager private helper
This commit is contained in:
@@ -147,6 +147,9 @@ class TestTorrentMatching:
|
||||
)
|
||||
mock_download_client.return_value.__aexit__ = AsyncMock(return_value=False)
|
||||
|
||||
hashes = await TorrentManager._TorrentManager__match_torrents_list(bangumi)
|
||||
match_torrents_list = getattr(
|
||||
TorrentManager, "_TorrentManager__match_torrents_list"
|
||||
)
|
||||
hashes = await match_torrents_list(bangumi)
|
||||
|
||||
assert hashes == ["matched"]
|
||||
|
||||
Reference in New Issue
Block a user