Skip to content

Commit

Permalink
refactor test
Browse files Browse the repository at this point in the history
  • Loading branch information
damdam-s committed Oct 20, 2023
1 parent 41a9d72 commit b72eb82
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,4 @@ def test_price_subtotal_discount_percent(self):
self.assertEqual(self.contract.contract_line_ids.price_subtotal, 50.0)

def test_price_subtotal_discount_fixed(self):
with Form(self.contract) as contract:
with contract.contract_line_ids.edit(0) as line:
line.discount_fixed = 42
line.save()
contract.save()

self.assertEqual(self.contract.contract_line_ids[0].price_subtotal, 58.0)
self.assertEqual(self.contract4.contract_line_ids.price_subtotal, 52.0)

0 comments on commit b72eb82

Please sign in to comment.