geo/backend/tests
chiguyong 6b90fb5cd6 refactor: unify Redis connection pool across all modules
- Create app/core/redis.py with global get_redis() singleton
- Replace 4 independent Redis connections:
  - cache.py: use get_redis() instead of own aioredis.from_url
  - dispatcher.py: use get_redis() instead of own connection
  - health_checker.py: use get_redis() instead of per-check connection
  - rate_limit.py: RedisRateLimitBackend uses get_redis() instead of own connection
- Replace main.py readiness endpoint to use get_redis()
- Add close_redis() in FastAPI lifespan shutdown
- Remove unused aioredis imports from health_checker.py and main.py
2026-06-04 14:21:14 +08:00
..
fixtures chore: unify test dirs, remove debug scripts, add content/diagnosis/attribution fixtures 2026-06-02 21:15:15 +08:00
test_agent_framework feat(geo): U1-U9 monetization closed loop implementation 2026-06-01 07:39:05 +08:00
test_api feat(geo): U1-U9 monetization closed loop implementation 2026-06-01 07:39:05 +08:00
test_content_pipeline feat: payment SDK integration, attribution window config, E2E tests, CI integration, rules center tests 2026-06-02 21:50:26 +08:00
test_infrastructure refactor: unify Redis connection pool across all modules 2026-06-04 14:21:14 +08:00
test_integration feat(geo): U1-U9 monetization closed loop implementation 2026-06-01 07:39:05 +08:00
test_middleware fix: 审计发现的问题修复 2026-05-25 23:33:25 +08:00
test_models feat(geo): U1-U9 monetization closed loop implementation 2026-06-01 07:39:05 +08:00
test_repositories feat: API Key管理+用量追踪完整功能链路v2(真实可用) 2026-05-25 20:43:08 +08:00
test_services chore: complete test file migration (delete old, add new paths) 2026-06-04 14:07:27 +08:00
test_utils feat(geo): U1-U9 monetization closed loop implementation 2026-06-01 07:39:05 +08:00
test_workers feat(geo): U1-U9 monetization closed loop implementation 2026-06-01 07:39:05 +08:00
__init__.py feat: GEO平台P0-P1核心功能重构 2026-05-23 09:34:58 +08:00
conftest.py chore: unify test dirs, remove debug scripts, add content/diagnosis/attribution fixtures 2026-06-02 21:15:15 +08:00