test: split ledger reconciliation coverage#421
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)
📝 WalkthroughWalkthroughThis PR reorganizes reconciliation test coverage by moving eight reconciliation-focused test functions and associated imports from ChangesTest 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 |
akmhatey-ai
left a comment
There was a problem hiding this comment.
Reviewed PR #421 at head 39b03715c9539e72a291efc5d0c1ffb89fd6a6d8 against Bounty #410 and earlier PR #420.
Verdict: blocker / duplicate scope.
Evidence:
- PR #421 has the same Git tree as PR #420:
3e10dee36d98a68eae0c52df9c967d877dec4662. git diff --quiet origin/pr/420..origin/pr/421exits0, so there is no file-level diff between the two PR heads.- Both PRs make the same test-only split:
tests/test_ledger.pyloses 440 lines andtests/test_ledger_reconciliation.pygains 455 lines. - Both PRs claim the same #410 ledger payout reconciliation split, but #420 was opened first and already has a #410 claim plus a #404 review claim.
Recommendation: do not treat #421 as a distinct #410 contribution unless maintainers intentionally prefer it over #420. The code shape itself is fine, but it does not add new scope beyond the earlier identical PR.
Summary
tests/test_ledger.pyinto focusedtests/test_ledger_reconciliation.py.Evidence
Preflight: Bounty #410 is open on the public MRWK API with
max_awards=3andawards_remaining=3. Existing claims #415 and #416 target different modules/sections (tests/test_security.pyURL validation andtests/test_api_mcp.pybounty API routes), so this is a distinct split fromtests/test_ledger.py.Validation
.\.venv\Scripts\python.exe -m pytest tests/test_ledger.py tests/test_ledger_reconciliation.py -q->30 passed.\.venv\Scripts\python.exe -m pytest -q->399 passed.\.venv\Scripts\python.exe -m ruff check tests/test_ledger.py tests/test_ledger_reconciliation.py-> passed.\.venv\Scripts\python.exe -m ruff format --check tests/test_ledger.py tests/test_ledger_reconciliation.py-> passed.\.venv\Scripts\python.exe -m mypy app-> passed.\.venv\Scripts\python.exe scripts\docs_smoke.py->docs smoke okgit diff --checkSummary by CodeRabbit