From 8392d612215dbe3fc86d67fd94d8701f3d682715 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Mon, 2 Dec 2019 16:04:36 +0100 Subject: [PATCH] [FIX] contract: Tests with duplicated name So they are not executed at all. Detected by chance looking for a test for the other PR. --- contract/tests/test_contract.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contract/tests/test_contract.py b/contract/tests/test_contract.py index 74adae51..76ea4144 100644 --- a/contract/tests/test_contract.py +++ b/contract/tests/test_contract.py @@ -631,7 +631,7 @@ class TestContract(TestContractBase): self.acct_line.write({'date_end': False, 'is_auto_renew': False}) self.assertFalse(self.contract.date_end) - def test_stop_contract_line(self): + def test_cancel_contract_line(self): """It should raise a validation error""" self.acct_line.cancel() with self.assertRaises(ValidationError): @@ -1808,7 +1808,7 @@ class TestContract(TestContractBase): self.contract._compute_invoice_count() self.assertEqual(self.contract.invoice_count, 3) - def test_contract_count_invoice(self): + def test_contract_count_invoice_2(self): invoices = self.env['account.invoice'] invoices |= self.contract.recurring_create_invoice() invoices |= self.contract.recurring_create_invoice()