Test Coverage: Injuries Module Tests

Resolved 💬 3 comments Opened Dec 6, 2025 by ingoldsby Closed Feb 5, 2026

Overview

Improve test coverage for injuries module which tracks player availability.

Target Files

| File | Lines | Current Coverage | Target |
|------|-------|------------------|--------|
| src/injuries/injury_impact.py | ~200 | 41% | 80% |
| src/injuries/injury_tracker.py | ~300 | 78% | 90% |

Test Categories Needed

1. Injury Impact Tests

  • [ ] test_calculate_impact_score - Impact on team performance
  • [ ] test_backup_player_adjustment - Minutes redistribution
  • [ ] test_multi_player_injuries - Cumulative impact

2. Injury Tracker Tests (expand existing)

  • [ ] test_fetch_current_injuries - API integration
  • [ ] test_parse_injury_status - Status enum mapping
  • [ ] test_historical_injuries - Past injury lookup

Acceptance Criteria

  • [ ] Impact calculation tests complete
  • [ ] Tracker tests expanded
  • [ ] Combined coverage ≥85%
  • [ ] All tests pass

Labels

test-coverage, injuries, priority-low

---
Part of test coverage improvement initiative

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗