litellm/tests/unit/proxy/guardrails
lzhan011 32dbbeaefe fix(guardrails): mark RestrictedPython's unpack guard as untyped
The guarded_unpack_sequence import is partially unknown to basedpyright,
which put reportUnknownVariableType one over its merge-base ceiling.
RestrictedPython ships no type information, so suppress it on that line
with the reason, the form the type-discipline gate accepts.

Also type the async test helper and the parametrized test's arguments,
which were the remaining new unknown-type diagnostics.
2026-10-24 21:09:56 -05:00
..
guardrail_hooks feat(guardrails): add native Reco guardrail provider (pre_call), fail closed by default (#48243) 2026-10-24 15:33:17 -07:00
__init__.py
test_anthropic_sse.py fix(anthropic): carry safeguard_results and stop_details in synthesized message_delta events (#46096) 2026-10-17 16:48:37 +00:00
test_auto_router_compression.py
test_content_filter_path_traversal.py
test_content_utils.py fix(responses)!: round-trip Anthropic compaction blocks as compaction items (#46754) 2026-10-21 08:50:19 +00:00
test_custom_code_security.py fix(guardrails): mark RestrictedPython's unpack guard as untyped 2026-10-24 21:09:56 -05:00
test_deferred_guardrail_logging.py fix(responses): keep strong refs to stream and websocket logging tasks (GC race) (#31074) 2026-10-20 09:26:25 +00:00
test_guardrail_coverage.py test: move offline proxy auth, hook, spend and pass-through tests to tests/unit (#45568) 2026-10-09 09:49:13 -07:00
test_guardrail_endpoints.py fix(logging): deliver completed batch success callbacks consistently (#47192) 2026-10-18 09:19:04 -07:00
test_guardrail_initializers.py refactor(types): replace Any with proven types in 157 files (#44798) 2026-10-06 15:31:54 +00:00
test_guardrail_load_balancing.py test: migrate SDK and proxy-booting legacy CircleCI tests to their tiers (#45758) 2026-10-11 00:17:21 -07:00
test_guardrail_registry.py feat(guardrails): split logging_only_scope direction from input-failure policy (#45709) 2026-10-10 01:46:39 -07:00
test_init_guardrails.py fix(config): treat blank env values as unset so the proxy neither crash-loops nor silently drops a guardrail (#46341) 2026-10-14 12:49:31 -07:00
test_llm_as_a_judge.py
test_mcp_jwt_signer.py
test_pillar_guardrails.py
test_prompt_security_guardrails.py
test_qostodian_nexus_guardrail.py
test_usage_endpoints.py
test_usage_tracking.py