mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[12.0][IMP] - Improve unit tests
This commit is contained in:
committed by
Thomas Binsfeld
parent
424f819d87
commit
9d44088707
@@ -294,3 +294,11 @@ class TestSaleOrder(TransactionCase):
|
||||
self.assertEqual(
|
||||
self.contract_line.termination_notice_rule_type, 'weekly'
|
||||
)
|
||||
|
||||
def test_action_show_contracts(self):
|
||||
self.sale.action_confirm()
|
||||
action = self.sale.action_show_contracts()
|
||||
self.assertEqual(
|
||||
self.env['contract.contract'].search(action['domain']),
|
||||
self.sale.order_line.mapped('contract_id'),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user