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
Implement unit tests and extra validators for the PaymentInfo pydantic model. The data model, which is used to process card payments, currently only checks for correct card number and cvv character count, and is not covered by any unit tests. I want to implement a model validator that checks for expired cards - so we don't call payment processor APIs with expired cards - and write unit tests for the model.
Acceptance Criteria
Model rejects expired cards and rasises an error
Unit tests cover all field and model validators
Testing Requirements Unit Tests:
Write and run unit tests to validate input data. Integration Tests:
Ensure end-to-end functionality is tested with integration tests.
The text was updated successfully, but these errors were encountered:
@joboy-dev I'm creating this issue for my PR which was closed. The related issue I mentioned on the PR was only related to, and not exactly for it. I'd appreciate a quick review and (hopefully) approval.
Describe the solution you'd like
Implement unit tests and extra validators for the PaymentInfo pydantic model. The data model, which is used to process card payments, currently only checks for correct card number and cvv character count, and is not covered by any unit tests. I want to implement a model validator that checks for expired cards - so we don't call payment processor APIs with expired cards - and write unit tests for the model.
Acceptance Criteria
Testing Requirements
Unit Tests:
Integration Tests:
The text was updated successfully, but these errors were encountered: