Skip to content

Commit

Permalink
[IMP] code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinDupont committed Jun 6, 2024
1 parent 9d9f910 commit 261f786
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions duplication_sale_order/tests/test_duplication_sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,19 @@ def test_01_duplicate_quotation(self):
new_quotation_qty,
"Duplication wizard should create new sale orders",
)

def test_02_wzd_default_get(self):
wzd_obj = self.wizard_obj.with_context(
active_id=self.order.id,
)
result = wzd_obj.default_get(
fields_list=[],
)
self.assertEqual(
result["order_id"],
self.order.id,
)
self.assertEqual(
result["partner_id"],
self.order.partner_id.id,
)

0 comments on commit 261f786

Please sign in to comment.