- Removed direct Player model imports from service methods - Added InMemoryQueryResult for mock-compatible filtering/sorting - Added RealPlayerRepository for real DB operations - Service now accepts AbstractPlayerRepository via constructor - Filtering and sorting work with both mocks and real DB - Tests can inject MockPlayerRepository for full test coverage This enables true unit testing without database dependencies. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| base.py | ||
| interfaces.py | ||
| mocks.py | ||
| player_service.py | ||
| team_service.py | ||