feat(ai): durcissement phase F (#79) - rate limit, redaction, OpenAPI/MCP, E2E
This commit is contained in:
@@ -12,6 +12,16 @@ from fastapi.testclient import TestClient
|
||||
sys.path.insert(0, str(Path(__file__).resolve().parent.parent))
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def _reset_tool_ratelimit():
|
||||
"""Isolate the per-identity tool rate limiter between tests."""
|
||||
from backend.tools import ratelimit
|
||||
|
||||
ratelimit.reset()
|
||||
yield
|
||||
ratelimit.reset()
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def _clean_env():
|
||||
"""Ensure no vault env vars leak between tests — but preserve test vault config."""
|
||||
|
||||
Reference in New Issue
Block a user