From 0329ee7bb2c9d63c258dd7a7e7ddf23a829802e7 Mon Sep 17 00:00:00 2001 From: Christopher Neugebauer Date: Sat, 3 Sep 2016 11:11:44 +1000 Subject: [PATCH] Amends test to test *both* paths for validating invoices. --- registrasion/tests/test_invoice.py | 1 + 1 file changed, 1 insertion(+) diff --git a/registrasion/tests/test_invoice.py b/registrasion/tests/test_invoice.py index 4b971f73..8528a708 100644 --- a/registrasion/tests/test_invoice.py +++ b/registrasion/tests/test_invoice.py @@ -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()