Etc (squash. srsly)
This commit is contained in:
parent
0329ee7bb2
commit
cdc6e229dc
1 changed files with 8 additions and 2 deletions
|
@ -565,13 +565,19 @@ class InvoiceTestCase(RegistrationCartTestCase):
|
||||||
invoice = TestingInvoiceController.for_id(invoice.invoice.id)
|
invoice = TestingInvoiceController.for_id(invoice.invoice.id)
|
||||||
invoice2 = TestingInvoiceController.for_cart(cart.cart)
|
invoice2 = TestingInvoiceController.for_cart(cart.cart)
|
||||||
|
|
||||||
invoice.invoice.refresh_from_db()
|
invoice._refresh()
|
||||||
|
|
||||||
|
# The first invoice should be refunded
|
||||||
self.assertEquals(
|
self.assertEquals(
|
||||||
commerce.invoice.STATUS_REFUNDED,
|
commerce.invoice.STATUS_REFUNDED,
|
||||||
invoice.invoice.status,
|
invoice.invoice.status,
|
||||||
)
|
)
|
||||||
|
|
||||||
self.assertEquals(cn.credit_note.value, invoice.total_payments())
|
# The credit note should be equal to the payments value of first inv
|
||||||
|
self.assertEquals(
|
||||||
|
cn.credit_note.value,
|
||||||
|
invoice.total_payments(),
|
||||||
|
)
|
||||||
|
|
||||||
def test_sends_email_on_invoice_creation(self):
|
def test_sends_email_on_invoice_creation(self):
|
||||||
invoice = self._invoice_containing_prod_1(1)
|
invoice = self._invoice_containing_prod_1(1)
|
||||||
|
|
Loading…
Reference in a new issue