mantimon-tcg/backend/tests/db
Cal Corum 29ab0b3d84 Add GameStateManager service with Redis/Postgres dual storage
- Implement GameStateManager with Redis-primary, Postgres-backup pattern
- Cache operations: save_to_cache, load_from_cache, delete_from_cache
- DB operations: persist_to_db, load_from_db, delete_from_db
- High-level: load_state (cache-first), delete_game, recover_active_games
- Query helpers: get_active_game_count, get_player_active_games
- Add 22 tests for GameStateManager (87% coverage)
- Add 6 __repr__ tests for all DB models (100% model coverage)
2026-01-27 10:59:58 -06:00
..
__init__.py Add database infrastructure with SQLAlchemy models and test suite 2026-01-27 10:17:30 -06:00
conftest.py Add database infrastructure with SQLAlchemy models and test suite 2026-01-27 10:17:30 -06:00
test_models.py Add GameStateManager service with Redis/Postgres dual storage 2026-01-27 10:59:58 -06:00
test_relationships.py Add database infrastructure with SQLAlchemy models and test suite 2026-01-27 10:17:30 -06:00