rate limiting: add test
rate limiting: add test: a task in smol-software-harbor (Harbor dataset). I test di limiter.py non verificano la matematica della ricarica. Aggiungi in tests/test limiter.py dei test (con l'orologio finto FakeClock già presente) che controllino che: - una richiesta che costa esattamente i token…
The task
I test di `limiter.py` non verificano la matematica della ricarica. Aggiungi in `tests/test_limiter.py` dei test (con l'orologio finto `FakeClock` già presente) che controllino che: - una richiesta che costa esattamente i token rimasti venga accettata; - la ricarica sia proporzionale al tempo trascorso: ad esempio…
Part of efederici/smol-software-harbor.