major-domo-database/app/services
root e5452cf0bf refactor: Add dependency injection for testability
- Created ServiceConfig for dependency configuration
- Created Abstract interfaces (Protocols) for mocking
- Created MockPlayerRepository, MockTeamRepository, MockCacheService
- Refactored BaseService and PlayerService to accept injectable dependencies
- Added pytest configuration and unit tests
- Tests can run without real database (uses mocks)

Benefits:
- Unit tests run in seconds without DB
- Easy to swap implementations
- Clear separation of concerns
2026-02-03 15:59:04 +00:00
..
__init__.py refactor: Extract services layer for testability 2026-02-03 15:38:34 +00:00
base.py refactor: Add dependency injection for testability 2026-02-03 15:59:04 +00:00
interfaces.py refactor: Add dependency injection for testability 2026-02-03 15:59:04 +00:00
mocks.py refactor: Add dependency injection for testability 2026-02-03 15:59:04 +00:00
player_service.py refactor: Add dependency injection for testability 2026-02-03 15:59:04 +00:00
team_service.py refactor: Extract services layer for testability 2026-02-03 15:38:34 +00:00