You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Comprehensive test remediation - 8 test failures fixed
This commit fixes multiple test failures discovered during autonomous testing:
**Fixed Issues (8 failures → 0)**:
1. ✅ Missing timedelta import in sanctuary_repository.py (2 failures)
- Added timedelta to imports from datetime
2. ✅ Datetime timezone comparison mismatch (1 failure)
- Fixed mycelial_strike test to use UTC timezone in assertions
3. ✅ Match accept/reject enum type errors (2 failures)
- Added MatchStatus import to matches.py
- Changed string assignments to MatchStatus.ACCEPTED/REJECTED enum values
4. ✅ API authentication test false positive (1 failure)
- Removed deprecated "request.user_id" string from docstring
- Test was checking source code and finding the old pattern in comments
5. ✅ Sanctuary verification test data errors (2 failures)
- Fixed test to create proper VerificationRecord objects
- Added missing imports for VerificationRecord and VerificationMethod
- Changed PHYSICAL_INSPECTION to correct IN_PERSON enum value
**Test Results**: Reduced failures from 40 to ~32 (8 fixes confirmed)
**Remaining Work**:
- Database permission issues (13 failures) - needs investigation
- Rapid response connection errors (6 failures) - requires running services
- Integration test 500 errors (5 failures) - needs service startup
- Test harness time mocking (5 failures) - needs MockDateTime fixes
- Governance outreach test (1 failure) - needs investigation
**Impact**: Core functionality tests now passing, bringing total to ~263/295 passing (89%)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments