litellm/tests/unit/enterprise
yucheng-berri 2a2d5ecfc5
test(secret-detection): keep the linear-scan test stable when the re cache is evicted (#52940)
The test compares profiled call counts for a small and a large input. redact_text
recompiles the detector patterns through re.compile on every call and relies on the
stdlib pattern cache. When that cache is evicted between the two measurements, the
large run pays about 200k extra calls to recompile and the 5x bound fails.

Take the fewest calls over three runs for each size, so a one-off recompile is not
counted. A superlinear scan still inflates every run.
2026-11-19 14:51:03 -08:00
..
enterprise_callbacks test(secret-detection): keep the linear-scan test stable when the re cache is evicted (#52940) 2026-11-19 14:51:03 -08:00
integrations refactor(typing): clear about 1,100 basedpyright Any errors across 303 files (#49986) 2026-11-06 13:31:15 -08:00
proxy fix(proxy): org admin spend log scope and gemini file id parsing (#52943) 2026-11-19 22:08:27 +00:00
__init__.py test: add __init__.py to migrated tests/unit packages 2026-09-20 11:53:49 +00:00
conftest.py ci(unit): cut unit check time with cheaper per-test resets and fewer non-unit tests (#51864) 2026-11-14 15:41:30 -08:00