Laura10101 / contractor-tax-calculator

0 stars 2 forks source link

Valid process payment success test fails with ValidationError #165

Closed Laura10101 closed 11 months ago

Laura10101 commented 11 months ago

FAILED payments_api/test_services.py::test_process_payment_success - django.core.exceptions.ValidationError: {'subscription_id': ['“Subscription for user 479” value must be an integer.']}

Laura10101 commented 11 months ago

The test was passing the whole subscription object to the service. Updated to pass in the id only.