add compare marker

This commit is contained in:
felinae98
2021-06-29 11:14:46 +08:00
parent 7e883f4d2c
commit d0b29abed7
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -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"
]
+1
View File
@@ -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))