test_api.py file-level

at sha256:b · View file ↗ · Intel ↗

History
1 files
1 commits
0 hotspots
0 🧊 dead
0 💥 blast risk
sha256:3 Merge branch 'feat/rate-limiting' into dev · qa-gs-20261106213818 · Nov 7, 2026
1 from src.api import handle
2
3
4 def test_handle():
5 assert handle(None)["status"] == 200
6
7
8 def test_has_ts():
9 assert "ts" in handle(None)
10
11
12 def test_bucket():
13 from src.api import _BUCKET
14 assert _BUCKET["tokens"] == 10