mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-19 00:01:29 +00:00
Changed from integration test to unit test by mocking the Lakera API response. This makes the test: - Deterministic and not dependent on external API behavior - Consistent with other tests in the file which are all mocked - Able to test the masking logic regardless of Lakera's detection of test data - Faster and more reliable in CI/CD The mock response includes both credit card and email in the payload with proper start/end positions so we can verify the masking logic works correctly. |
||
|---|---|---|
| .. | ||
| conftest.py | ||
| test_bedrock_guardrails.py | ||
| test_custom_guardrail.py | ||
| test_dynamoai_guardrails.py | ||
| test_guardrail_load_balancing.py | ||
| test_guardrails_config.py | ||
| test_javelin_guardrails.py | ||
| test_lakera_v2.py | ||
| test_lasso_guardrails.py | ||
| test_presidio_pii.py | ||
| test_tracing_guardrails.py | ||
| test_zscaler_ai_guard.py | ||