mantimon-tcg/backend/tests/api
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
..
__init__.py Implement Phase 2: Authentication system 2026-01-27 21:49:59 -06:00
conftest.py Implement Phase 2: Authentication system 2026-01-27 21:49:59 -06:00
test_auth.py Implement UserRepository pattern with dependency injection 2026-01-30 07:30:16 -06:00
test_collections_api.py Fix security and validation issues from code review 2026-01-28 14:16:07 -06:00
test_decks_api.py Fix security and validation issues from code review 2026-01-28 14:16:07 -06:00
test_games_api.py Implement REST endpoints for game management (API-001) 2026-01-29 23:09:12 -06:00
test_starter_deck_api.py Fix security and validation issues from code review 2026-01-28 14:16:07 -06:00
test_users.py Implement UserRepository pattern with dependency injection 2026-01-30 07:30:16 -06:00