Major Domo Database - PostgreSQL database service for SBA bot
- 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 |
||
|---|---|---|
| .claude | ||
| app | ||
| migrations | ||
| scripts | ||
| test-storage | ||
| tests | ||
| .dockerignore | ||
| .env | ||
| .gitignore | ||
| =2.9.0 | ||
| CLAUDE.md | ||
| db_engine.py | ||
| docker-compose.yml | ||
| Dockerfile | ||
| Dockerfile.optimized | ||
| LICENSE | ||
| main.py | ||
| migrations.py | ||
| pd_master.db | ||
| pytest.ini | ||
| requirements.txt | ||
| VERSION | ||