Skip to content

Claude/analyze test coverage lk m4 p#8

Merged
tempus2016 merged 3 commits intomainfrom
claude/analyze-test-coverage-LkM4P
Mar 24, 2026
Merged

Claude/analyze test coverage lk m4 p#8
tempus2016 merged 3 commits intomainfrom
claude/analyze-test-coverage-LkM4P

Conversation

@tempus2016
Copy link
Copy Markdown
Owner

No description provided.

claude added 3 commits March 24, 2026 18:15
- tests/conftest.py: HA stub modules installed into sys.modules so the
  integration can be imported without a real Home Assistant installation
- tests/test_models.py: 35 tests covering parse_datetime, format_datetime,
  and all six model classes (Child, Chore, Reward, ChoreCompletion,
  RewardClaim, PointsTransaction) — round-trips, defaults, legacy migration
- tests/test_coordinator_logic.py: 54 tests covering parse_milestone_setting,
  _award_points (streak tracking, weekend multiplier, milestone bonuses),
  _async_check_streaks, _async_check_perfect_week, async_prune_history, and
  is_chore_available_for_child
- tests/test_storage.py: 27 tests covering async_load defaults, the
  assigned_to migration, children CRUD, last_completed store (set/get/undo),
  the 200-item points transaction cap, pending completions filter, and settings
- pytest.ini: configures test discovery and pythonpath

All 108 tests pass.

https://claude.ai/code/session_01CkPmKWe5siThpfZ6GDpNQF
@tempus2016 tempus2016 merged commit 821ea77 into main Mar 24, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants