mantimon-tcg/backend/tests/services
Cal Corum 7fcb86ff51 Implement UserRepository pattern with dependency injection
- Add UserRepository and LinkedAccountRepository protocols to protocols.py
- Add UserEntry and LinkedAccountEntry DTOs for service layer decoupling
- Implement PostgresUserRepository and PostgresLinkedAccountRepository
- Refactor UserService to use constructor-injected repositories
- Add get_user_service factory and UserServiceDep to API deps
- Update auth.py and users.py endpoints to use UserServiceDep
- Rewrite tests to use FastAPI dependency overrides (no monkey patching)

This follows the established repository pattern used by DeckService and
CollectionService, enabling future offline fork support.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 07:30:16 -06:00
..
oauth Implement Phase 2: Authentication system 2026-01-27 21:49:59 -06:00
__init__.py Add GameStateManager service with Redis/Postgres dual storage 2026-01-27 10:59:58 -06:00
conftest.py Switch to testcontainers for automatic test container management 2026-01-28 16:49:11 -06:00
test_card_service.py Add CardService and card data conversion pipeline 2026-01-27 14:16:40 -06:00
test_collection_service.py Fix security and validation issues from code review 2026-01-28 14:16:07 -06:00
test_deck_service.py Fix medium priority issues from code review 2026-01-28 14:32:08 -06:00
test_game_state_manager.py Replace silent error hiding with explicit failures 2026-01-29 18:48:06 -06:00
test_jwt_service.py Implement Phase 2: Authentication system 2026-01-27 21:49:59 -06:00
test_user_service.py Implement UserRepository pattern with dependency injection 2026-01-30 07:30:16 -06:00