test: split ledger reconciliation coverage#420
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughTests covering ledger reconciliation behavior—including payouts, missing payments, legacy proof matching, duplicate evidence, and source URL grouping—are moved from ChangesReconciliation Test Reorganization
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
bitdamii
left a comment
There was a problem hiding this comment.
Reviewed PR #420 at head 47fc2cde0ab59668ce12fae1c449ae8fea0e00c1 against Bounty #410 and current origin/main.
Verdict: no blockers found.
What I checked:
- The diff is test-only after refreshing
origin/main: it moves payout reconciliation and duplicate accepted source URL tests fromtests/test_ledger.pyintotests/test_ledger_reconciliation.py. - The moved tests preserve the original reconciliation assertions for paid submissions, missing payments, legacy proof source URLs, explicit submission mismatches, duplicate proof evidence, mismatched proof evidence, and duplicate accepted source URL grouping.
tests/test_ledger.pydrops the now-unused reconciliation imports, whiletests/test_ledger_reconciliation.pyimports the reconciliation helpers directly.- The PR is distinct from the other #410 splits: #416 covers bounty API route tests and #415 covers security URL validation tests; #420 covers ledger reconciliation tests.
- PR status is open/CLEAN, GitHub quality check is successful, and CodeRabbit reported no actionable comments.
Local validation:
uv run --extra dev python -m pytest tests/test_ledger_reconciliation.py tests/test_ledger.py -q-> 30 passed.uv run --extra dev ruff check tests/test_ledger.py tests/test_ledger_reconciliation.py-> passed.uv run --extra dev ruff format --check tests/test_ledger.py tests/test_ledger_reconciliation.py-> passed.uv run --extra dev python -m mypy app-> success.git diff --check origin/main...HEAD-> clean.
No application-code behavior changes were introduced by this PR, and the extracted tests still exercise the same ledger reconciliation behavior.
Bounty #410
Summary:
tests/test_ledger.pyintotests/test_ledger_reconciliation.py.Scope distinction:
tests/test_api_mcp.pybounty API route tests andtests/test_security.pyURL validation tests.tests/test_ledger.pycovering payout reconciliation and duplicate accepted source URL behavior.Validation:
python -m pytest tests/test_ledger_reconciliation.py tests/test_ledger.py -q-> 30 passedpython -m pytest -q-> 399 passedpython -m ruff check tests/test_ledger.py tests/test_ledger_reconciliation.py-> all checks passedpython -m ruff format --check tests/test_ledger.py tests/test_ledger_reconciliation.py-> 2 files already formattedgit diff --check-> cleanExpected PR size: 2 test files.
Summary by CodeRabbit