from src.api import handle def test_handle(): assert handle(None)["status"] == 200 def test_has_ts(): assert "ts" in handle(None) def test_bucket(): from src.api import _BUCKET assert _BUCKET["tokens"] == 10