features: auto-next w/ 5s countdown, prev/next, playback speed, hide fillers, recent searches

This commit is contained in:
jozamudi committed 2026-08-19 18:41:13 +00:00
1 parent 9fdf3944fc
commit 98fb4e5461
6 files changed
+269 -25

No files matched your search

+15
View File
@@ -138,6 +138,21 @@ def test_history_all_and_delete(base=BASE):
jar=jar, base=base)["removed"] == 0
def test_recent_searches(base=BASE):
a = login("alice", "alicepw12345", base)
assert req("POST", "/api/searches", {"q": "naruto"}, jar=a, base=base) == 200
assert req("POST", "/api/searches", {"q": "frieren"}, jar=a, base=base) == 200
# case-insensitive dedupe, newest first
assert req("POST", "/api/searches", {"q": "NARUTO"}, jar=a, base=base) == 200
assert _json("GET", "/api/searches", jar=a, base=base) == ["NARUTO", "frieren"]
# per-user isolation (browser tests write admin's searches, but only after
# the API phase, so admin is clean here)
b = login("admin", "adminpw12345", base)
assert _json("GET", "/api/searches", jar=b, base=base) == []
# blank q rejected
assert req("POST", "/api/searches", {"q": " "}, jar=a, base=base) == 422
def test_self_delete(base=BASE):
jar = login("dave", "davepw12345", base)
assert req("POST", "/account/delete", jar=jar, base=base) == 200