MCPcopy Create free account
hub / github.com/Tong89/smartNode / _reset_rate_limiter

Function _reset_rate_limiter

tests/test_api_errors.py:42–47  ·  view source on GitHub ↗

Clear the global sliding-window rate limiter before every test.

()

Source from the content-addressed store, hash-verified

40
41@pytest.fixture(autouse=True)
42def _reset_rate_limiter():
43 """Clear the global sliding-window rate limiter before every test."""
44 from backend.ratelimit import _limiter
45 with _limiter._lock:
46 _limiter._hits.clear()
47 yield
48
49
50# ---------------------------------------------------------------------------

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected