fix: remove test_positions_df non-test that always passes (#16) #43
No reviewers
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/paper-dynasty-card-creation#43
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "ai/paper-dynasty-card-creation-16"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #16
Summary
test_positions_dfintests/test_helpers.pyprovided zero test coverage:pd_positions_df(19)synchronously — this is anasyncfunction, so the call returned a coroutine object without executing any codeTrue == True, which always passes unconditionallyChanges
test_positions_dffunction entirelypd_positions_dfimportpd_positions_dfmakes a live API call to the Paper Dynasty database; a proper test would require mockingdb_get, which is out of scope for this cleanup.Files changed
tests/test_helpers.pyAI Code Review
Files Reviewed
tests/test_helpers.py(modified)Findings
Correctness
pd_positions_dfis anasyncfunction; calling it withoutawaitreturns a coroutine object and executes no code. The result was assigned but never inspected, and the sole assertion (True == True) is unconditionally true — this was not a test in any meaningful sense.pd_positions_dfis removed from the import, the dead function is gone, and the remaining two tests (test_mround,test_sanitize) are completely untouched.Security
Style & Conventions
Suggestions
Verdict: COMMENT (LGTM)
Clean removal of a non-functional test that provided zero coverage. The remaining tests are unaffected. Good housekeeping.
Automated review by Claude PR Reviewer
Approved — safe bug fix per PO triage.