Skip to content

Fix missing get_reward() method on coordinator and add reward tests#9

Merged
tempus2016 merged 1 commit intomainfrom
claude/analyze-test-coverage-LkM4P
Mar 24, 2026
Merged

Fix missing get_reward() method on coordinator and add reward tests#9
tempus2016 merged 1 commit intomainfrom
claude/analyze-test-coverage-LkM4P

Conversation

@tempus2016
Copy link
Copy Markdown
Owner

async_claim_reward and async_approve_reward both called self.get_reward() which was never defined, causing an AttributeError at runtime whenever a child tried to claim a reward or a parent approved one.

Also adds 12 tests covering the full reward workflow: claim (happy path, insufficient points, missing reward/child, no premature deduction), approve (deducts points, raises on insufficient balance, marks approved), and reject (removes claim, leaves points untouched).

https://claude.ai/code/session_01CkPmKWe5siThpfZ6GDpNQF

async_claim_reward and async_approve_reward both called self.get_reward()
which was never defined, causing an AttributeError at runtime whenever a
child tried to claim a reward or a parent approved one.

Also adds 12 tests covering the full reward workflow: claim (happy path,
insufficient points, missing reward/child, no premature deduction),
approve (deducts points, raises on insufficient balance, marks approved),
and reject (removes claim, leaves points untouched).

https://claude.ai/code/session_01CkPmKWe5siThpfZ6GDpNQF
@tempus2016 tempus2016 merged commit f314d6c into main Mar 24, 2026
4 checks passed
@tempus2016 tempus2016 deleted the claude/analyze-test-coverage-LkM4P branch March 24, 2026 18:36
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