Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
stripe: Link InvoiceItem to Invoice.
Aman Agrawal1a516f8b0475
diff --git a/corporate/tests/test_stripe.py b/corporate/tests/test_stripe.pyindex 719b6ad02bb..22bb9f944cf 100644--- a/corporate/tests/test_stripe.py+++ b/corporate/tests/test_stripe.py@@ -4736,13 +4736,6 @@ class StripeTest(StripeTestCase):invoices = []assert customer.stripe_customer_id is not Nonefor _ in range(num_invoices):- stripe.InvoiceItem.create(- amount=10000,- currency="usd",- customer=customer.stripe_customer_id,- description="Zulip Cloud Standard",- discountable=False,- )invoice = stripe.Invoice.create(auto_advance=True,collection_method="send_invoice",@@ -4750,6 +4743,16 @@ class StripeTest(StripeTestCase):days_until_due=DEFAULT_INVOICE_DAYS_UNTIL_DUE,statement_descriptor="Zulip Cloud Standard",)+ assert invoice.id is not None+ stripe.InvoiceItem.create(+ invoice=invoice.id,+ amount=10000,+ currency="usd",+ customer=customer.stripe_customer_id,+ description="Zulip Cloud Standard",+ discountable=False,+ )+stripe.Invoice.finalize_invoice(invoice)invoices.append(invoice)return invoices