Commit 055cc761 authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_travel_expense_ui_test: check effective date

parent ca81bb3d
......@@ -266,9 +266,12 @@ class TestOfficeJSTravelExpense(ERP5TypeTestCase):
self.assertEqual(len(leave_request_period_list), 2)
self.assertEqual(leave_request_period_list[0].getQuantity(), 5)
self.assertEqual(leave_request_period_list[0].getStartDate(), now)
self.assertEqual(leave_request_period_list[0].getEffectiveDate(), ticket.getEffectiveDate())
self.assertEqual(leave_request_period_list[0].getStopDate(), DateTime('2021/12/31').latestTime())
self.assertEqual(leave_request_period_list[1].getQuantity(), 4)
self.assertEqual(leave_request_period_list[1].getStartDate(), DateTime('2022/01/01'))
self.assertEqual(leave_request_period_list[1].getEffectiveDate(), DateTime('2022/01/01'))
self.assertNotEqual(leave_request_period_list[1].getEffectiveDate(), ticket.getEffectiveDate())
self.assertEqual(leave_request_period_list[1].getStopDate(), end_date.latestTime())
self.assertIsNotNone(new_record)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment