Amends test to test *both* paths for validating invoices.

This commit is contained in:
Christopher Neugebauer 2016-09-03 11:11:44 +10:00
parent 5a7819b0d7
commit 0329ee7bb2

View file

@ -562,6 +562,7 @@ class InvoiceTestCase(RegistrationCartTestCase):
# Adding to cart will mean that the old invoice for this cart
# will be invalidated. A new invoice should be generated.
cart.add_to_cart(self.PROD_1, 1)
invoice = TestingInvoiceController.for_id(invoice.invoice.id)
invoice2 = TestingInvoiceController.for_cart(cart.cart)
invoice.invoice.refresh_from_db()