litellm/tests/unit/enterprise
yuneng-jiang 47a0d50c35
test: remove dead skip-marked tests and rewrite the Redis buffer drain test (#52063)
Fourteen tests carried an unconditional skip and could never run. The unit
conftest deletes DATABASE_URL and REDIS_* before every test, so the prisma
and Redis ones would fail in tests/unit even without the marker. Each
behavior they claimed is already covered by mocked unit tests or by the
integration suite against real Postgres and Redis, and the gpt-4o token
counter test patched a function removed in #10409.

The Redis buffer drain test was the one with unique value, so it is
rewritten in test_redis_update_buffer.py against the fakeredis-backed
RedisCache fixture. It fills every queue a spend flush writes, drains the
buffer, and asserts no Redis key is left behind.
2026-11-16 10:50:52 -08:00
..
enterprise_callbacks feat: email key owners before opted-in virtual keys expire (#51482) 2026-11-14 13:47:16 -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 test: remove dead skip-marked tests and rewrite the Redis buffer drain test (#52063) 2026-11-16 10:50:52 -08: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