mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-09 01:16:50 +08:00
test(indexer): anonymize TorrentLeech fixture
This commit is contained in:
@@ -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 解析器测试实例
|
构造 TorrentLeech 解析器测试实例
|
||||||
|
|
||||||
@@ -107,7 +107,7 @@ def test_torrent_leech_falls_back_to_generic_profile_link_without_topbar():
|
|||||||
"""
|
"""
|
||||||
首页没有新版顶栏时应继续兼容通用资料链接中的用户 ID
|
首页没有新版顶栏时应继续兼容通用资料链接中的用户 ID
|
||||||
"""
|
"""
|
||||||
parser = _build_parser(site_cookie="tlpass=masked")
|
parser = _build_parser()
|
||||||
|
|
||||||
parser._parse_site_page('<a href="/profile/42/marketplace">Profile</a>')
|
parser._parse_site_page('<a href="/profile/42/marketplace">Profile</a>')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user