Browse Source

[FIX] fix unit tests

pull/238/head
sbejaoui 6 years ago
parent
commit
cc4688050d
  1. 3
      contract_variable_quantity/tests/test_contract_variable_quantity.py

3
contract_variable_quantity/tests/test_contract_variable_quantity.py

@ -61,8 +61,7 @@ class TestContractVariableQuantity(odoo.tests.HttpCase):
def test_check_variable_quantity(self):
self.contract.recurring_create_invoice()
invoice = self.env['account.invoice'].search(
[('contract_id', '=', self.contract.id)])
invoice = self.contract._get_related_invoices()
self.assertEqual(invoice.invoice_line_ids[0].quantity, 12)
def test_check_skip_zero_qty(self):

Loading…
Cancel
Save