feat(web): up avatars, follower count, and dedupe views/avg secondary
This commit is contained in:
1 parent
1ed3746f4b
commit
2ff3e7952b
23 files changed
+209
-58
No files matched your search
@@ -353,6 +353,7 @@ def test_view_detail_by_aid_and_bvid():
|
||||
assert detail.pages == 2
|
||||
assert detail.cover and detail.cover.startswith("http")
|
||||
assert detail.metrics()["view"] == 819
|
||||
assert detail.up_face and detail.up_face.startswith("http")
|
||||
assert "aid=117530286889638" in transport.calls[0]["url"]
|
||||
|
||||
transport = QueueTransport([http_json(VIEW_PAYLOAD)])
|
||||
@@ -373,6 +374,7 @@ def test_view_detail_fallbacks_and_required_arg():
|
||||
assert detail.duration == 0
|
||||
assert detail.pages is None
|
||||
assert detail.cover is None
|
||||
assert detail.up_face is None
|
||||
|
||||
client, _ = make_client(QueueTransport([]))
|
||||
for kwargs in ({}, {"aid": 1, "bvid": "BV1xvxi6LEZD"}):
|
||||
|
||||
Reference in new issue
Block a user