Laura10101 / contractor-tax-calculator

0 stars 2 forks source link

Posting payment tests fail with ValidationError #176

Closed Laura10101 closed 11 months ago

Laura10101 commented 11 months ago

FAILED payments_api/test_views.py::test_post_payment_with_null_subscription_option_id - django.core.exceptions.ValidationError: ['Parameter total must be a valid float to 2 decimal places'] FAILED payments_api/test_views.py::test_post_payment_with_negative_subscription_option_id - django.core.exceptions.ValidationError: ['Parameter total must be a valid float to 2 decimal places'] FAILED payments_api/test_views.py::test_post_payment_with_negative_total - django.core.exceptions.ValidationError: ['Parameter total must be a valid float to 2 decimal places'] FAILED payments_api/test_views.py::test_post_payment_with_invalid_currency_code - django.core.exceptions.ValidationError: ['Parameter total must be a valid float to 2 decimal places'] FAILED payments_api/test_views.py::test_post_valid_payment - django.core.exceptions.ValidationError: ['Parameter total must be a valid float to 2 decimal places']

Laura10101 commented 11 months ago

Modified validation rule in the create_payment service to allow total to be a float or an integer.