Skip to content

Commit

Permalink
[FIX] hr_expense: adapt test to new version
Browse files Browse the repository at this point in the history
  • Loading branch information
KangOl committed Nov 28, 2018
1 parent efe7ca1 commit 4ac0019
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions addons/hr_expense/tests/test_expenses.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ def test_expense_from_email(self):

expense = self.env['hr.expense'].message_new(message_parsed)

self.assertEquals(expense.product_id, self.product)
self.assertEquals(expense.tax_ids.ids, [self.tax.id])
self.assertEquals(expense.total_amount, 10863.60)
air_ticket = self.env.ref("hr_expense.air_ticket")
self.assertEquals(expense.product_id, air_ticket)
self.assertEquals(expense.tax_ids.ids, [])
self.assertEquals(expense.total_amount, 9876.0)
self.assertTrue(expense.employee_id in user_demo.employee_ids)

0 comments on commit 4ac0019

Please sign in to comment.