feat(web): default video sort to published and UP sort to avg_views
This commit is contained in:
1 parent
764bde65d9
commit
11930db2bf
8 files changed
+31
-20
No files matched your search
@@ -63,6 +63,9 @@ def test_video_listing_filters_and_sorting():
|
||||
with tempfile.TemporaryDirectory() as tmp:
|
||||
db, q = setup(tmp)
|
||||
try:
|
||||
default = q.list_videos()
|
||||
assert default["sort"] == "published"
|
||||
|
||||
heat = q.list_videos(sort="heat")
|
||||
aids = [item["aid"] for item in heat["items"]]
|
||||
assert 104 not in aids, "removed 视频不应进入榜单"
|
||||
|
||||
Reference in new issue
Block a user