Monday, December 16, 2024
1 change · master
Code cleanup and technical improvements
The subscription app's automated tests were reorganized into smaller, clearer groups without changing how the product works. This helps developers maintain the subscription area more efficiently and reduces future risk when making changes.
Original PR description
The TestSubscription class from test_sale_subscription.py was too large (~4000 LOC), so the code has been refactored to improve maintainability and readability. The test cases have been divided into more focused classes: - testSubscriptionInvoice: For invoice-related test cases. - testSubscriptionUpsell: For upsell-related test cases. - testSubscriptionRenew: For renewal-related test cases. - testSubscriptionInvoiceSignature: Moved to a new file for signature-related invoicing tests. This refactor ensures better organization and ease of understanding without changing the test logic.