From b042086efad371d59f13fdbd4f26c17affa5bbf1 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Mon, 20 Jul 2026 13:49:02 +0800 Subject: [PATCH] test(indexer): anonymize TorrentLeech fixture --- tests/test_torrent_leech_parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_torrent_leech_parser.py b/tests/test_torrent_leech_parser.py index 8959db264..b94978c61 100644 --- a/tests/test_torrent_leech_parser.py +++ b/tests/test_torrent_leech_parser.py @@ -37,7 +37,7 @@ PROFILE_VIEW_HTML = """ """ -def _build_parser(site_cookie: str = "tluid=1901693; tlpass=masked") -> TorrentLeechSiteUserInfo: +def _build_parser(site_cookie: str = "session=masked") -> TorrentLeechSiteUserInfo: """ 构造 TorrentLeech 解析器测试实例 @@ -107,7 +107,7 @@ def test_torrent_leech_falls_back_to_generic_profile_link_without_topbar(): """ 首页没有新版顶栏时应继续兼容通用资料链接中的用户 ID """ - parser = _build_parser(site_cookie="tlpass=masked") + parser = _build_parser() parser._parse_site_page('Profile')