feat(web): refresh palette, simplify ranking toolbar and drop export
This commit is contained in:
1 parent
6a053bdfe8
commit
c2ef998720
16 files changed
+141
-206
No files matched your search
@@ -239,10 +239,6 @@ def test_fans_candidates_system_and_export():
|
||||
assert system["next_runs"]["snapshot"] > 0
|
||||
assert system["next_runs"]["folder_sync"] > FIXED_NOW
|
||||
assert system["next_runs"]["discover"] > FIXED_NOW
|
||||
|
||||
exported = q.export_videos(sort="view")
|
||||
assert exported["total"] == 3
|
||||
assert all("metrics" in item for item in exported["items"])
|
||||
finally:
|
||||
db.close()
|
||||
|
||||
|
||||
@@ -119,9 +119,7 @@ def test_readonly_routes_and_static():
|
||||
assert status == 404
|
||||
|
||||
status, _, payload = running.request("/api/export.csv?sort=view")
|
||||
assert status == 200
|
||||
assert payload.startswith(b"\xef\xbb\xbf")
|
||||
assert "咻咻满".encode("utf-8") in payload
|
||||
assert status == 404
|
||||
|
||||
status, headers, _ = running.request("/api/overview")
|
||||
assert headers["X-Content-Type-Options"] == "nosniff"
|
||||
|
||||
Reference in new issue
Block a user