feat(web): dropdown sort and time filters with year support
This commit is contained in:
1 parent
bc3bef0743
commit
9be7d1cab2
10 files changed
+191
-67
No files matched your search
@@ -111,6 +111,15 @@ def test_readonly_routes_and_static():
|
||||
items = json.loads(payload)["data"]["items"]
|
||||
assert items and items[0]["aid"] == 102
|
||||
|
||||
status, _, payload = running.json("/api/videos?year=2026")
|
||||
assert status == 200
|
||||
assert payload["data"]["year"] == 2026
|
||||
status, _, payload = running.json("/api/videos?year=1800")
|
||||
assert status == 400
|
||||
status, _, payload = running.json("/api/ups?year=2026")
|
||||
assert status == 200
|
||||
assert payload["data"]["year"] == 2026
|
||||
|
||||
status, _, payload = running.request("/api/ups")
|
||||
assert status == 200
|
||||
assert json.loads(payload)["data"]["sort"] == "efficiency"
|
||||
|
||||
Reference in new issue
Block a user