mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-04 02:26:11 +08:00
add compare marker
This commit is contained in:
parent
7e883f4d2c
commit
d0b29abed7
@ -45,3 +45,8 @@ build-backend = "poetry.masonry.api"
|
||||
name = "aliyun"
|
||||
url = "https://mirrors.aliyun.com/pypi/simple/"
|
||||
default = true
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
markers = [
|
||||
"compare: compare fetching result with rsshub"
|
||||
]
|
||||
|
@ -81,6 +81,7 @@ def test_tag(weibo, weibo_ak_list_1):
|
||||
assert(weibo.get_tags(raw_post) == ['明日方舟', '音律联觉'])
|
||||
|
||||
@pytest.mark.asyncio
|
||||
@pytest.mark.compare
|
||||
async def test_rsshub_compare(weibo):
|
||||
target = '6279793937'
|
||||
raw_posts = filter(weibo.filter_platform_custom, await weibo.get_sub_list(target))
|
||||
|
Loading…
x
Reference in New Issue
Block a user