litellm/tests/unit/proxy/db/db_transaction_queue
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
..
__init__.py
test_base_update_queue.py test(proxy): move proxy_server, _experimental and db tests into tests/unit/proxy (#44012) 2026-10-01 18:14:24 +00:00
test_daily_spend_update_queue.py feat(spend): report guardrail spend separately in daily activity (#51010) 2026-11-10 13:02:26 -08:00
test_pod_lock_manager.py test(proxy): move proxy_server, _experimental and db tests into tests/unit/proxy (#44012) 2026-10-01 18:14:24 +00:00
test_redis_update_buffer.py test: remove dead skip-marked tests and rewrite the Redis buffer drain test (#52063) 2026-11-16 10:50:52 -08:00
test_spend_logs_partition_manager.py fix(otel): name postgres service spans by operation and table (#44240) 2026-10-03 09:20:28 -07:00
test_spend_update_queue.py fix(proxy): emit spend queue size after updates and flushes (#46956) 2026-10-16 13:44:34 -07:00
test_tool_discovery_queue.py fix(proxy): treat Postgres restart and shutdown errors as DB unavailable, not poison spend-log rows (#50132) 2026-11-04 17:39:30 -08:00
test_window_spend_update_queue.py test(proxy): move proxy_server, _experimental and db tests into tests/unit/proxy (#44012) 2026-10-01 18:14:24 +00:00