Implement test_validate_transaction_exception_handling
#35
Labels
No Label
ai-changes-requested
ai-pr-opened
ai-reviewed
ai-reviewing
ai-working
in-next-release
status/in-progress
status/pr-open
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/major-domo-v2#35
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
Description
tests/test_services_transaction.py:238-242— Skipped withreason="Exception handling test needs refactoring for new patterns"and body is justpass. Exception handling in transaction validation is a critical code path with no coverage.File Locations
tests/test_services_transaction.py:238-242Labels
tech-debt, todo
Priority
medium
Implemented in PR #67: #67
Removed the
@pytest.mark.skipand implemented the test by patchingRosterValidationin thetransaction_servicemodule to raiseRuntimeErroron its first call. This triggers theexcept Exceptionclause attransaction_service.py:187-192, which returns a failedRosterValidation(is_legal=False, errors=["Validation error: ..."])instead of propagating the exception. All 20 tests in the file now pass.