Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /dislovelhl_enhanced-agent-bus /tests /coverage /conftest.py
| """conftest.py for enhanced_agent_bus coverage tests. | |
| Disables the slowapi rate-limiter so that coverage tests calling route | |
| handlers directly don't trigger slowapi's request-type validation. Tests | |
| that need a Starlette Request pass MagicMock() directly; the disabled | |
| limiter means no isinstance(request, Request) guard is enforced. | |
| """ | |
| from __future__ import annotations | |
| import pytest | |
| def _disable_slowapi_rate_limit(monkeypatch: pytest.MonkeyPatch) -> None: | |
| """Set limiter.enabled=False to skip slowapi request validation.""" | |
| try: | |
| from enhanced_agent_bus.api.rate_limiting import limiter | |
| monkeypatch.setattr(limiter, "enabled", False) | |
| except ImportError: | |
| pass | |
Xet Storage Details
- Size:
- 734 Bytes
- Xet hash:
- 670d142252cc4b4a7b7958b5d21d0b9a11011da5f88f92adb5b6a7c75fdeef10
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.