Skip to content

Commit a35c94d

Browse files
authored
fix: use new weibo url to test (#469)
1 parent a32a9e8 commit a35c94d

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

tests/parsers/test_twitter.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ async def parse_video(url: str):
2020
logger.info(f"{url} | 开始解析推特视频")
2121
result = await parser.parse(keyword, searched)
2222
logger.debug(f"{url} | 解析结果: \n{result}")
23-
assert result.title, "标题为空"
2423
video_contents = result.video_contents
2524
assert video_contents, "视频内容为空"
2625
for video_content in video_contents:

tests/parsers/test_weibo.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async def test_repost():
3939

4040
urls = [
4141
# "https://mapp.api.weibo.cn/fx/77eaa5c2f741894631a87fc4806a1f05.html",
42-
"https://weibo.com/1694917363/Q0KtXh6z2",
42+
"https://weibo.com/1854467892/QsPbt51HH",
4343
]
4444

4545
async def parse_repost(url) -> None:
@@ -102,7 +102,6 @@ async def test_text():
102102
# "https://mapp.api.weibo.cn/fx/8102df2b26100b2e608e6498a0d3cfe2.html",
103103
"https://weibo.com/3144744040/PvoG6c1AR",
104104
"https://weibo.com/3144744040/PiTAYaTKQ",
105-
"https://weibo.com/1157864602/Q0PtH9Yux",
106105
]
107106

108107
async def parse_text(url: str) -> None:

0 commit comments

Comments
 (0)