diff options
| author | jem-odoo <jem@openerp.com> | 2018-01-17 08:58:16 +0100 |
|---|---|---|
| committer | jem-odoo <jem@openerp.com> | 2018-01-17 14:13:23 +0100 |
| commit | 079e1a0c312ea6ed66ed42676b25b6ac22db2b58 (patch) | |
| tree | 411626fccd6e8e03ce0b0d4f7ff619d2b571d818 | |
| parent | e3333d5e074d8787108c688eb7cde931b26359c6 (diff) | |
[IMP] project_timesheet_holidays: better log message when test fails
For some unknown reason (for now), this module tests fails when comparing
generated timesheet number and leaves duration (in days).
By improving the log message, we can have more informations to understand
why the failure happens 'randomly'.
| -rw-r--r-- | addons/project_timesheet_holidays/tests/test_timesheet_holidays.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/project_timesheet_holidays/tests/test_timesheet_holidays.py b/addons/project_timesheet_holidays/tests/test_timesheet_holidays.py index b7b7b6fc3fb..fbfdf2afa55 100644 --- a/addons/project_timesheet_holidays/tests/test_timesheet_holidays.py +++ b/addons/project_timesheet_holidays/tests/test_timesheet_holidays.py @@ -84,7 +84,7 @@ class TestTimesheetHolidays(TestTimesheet): 'number_of_days_temp': number_of_days, }) holiday.sudo().action_validate() - self.assertEquals(len(holiday.timesheet_ids), number_of_days, 'Number of generated timesheets should be the same as the leave duration (1 per day)') + self.assertEquals(len(holiday.timesheet_ids), number_of_days, 'Number of generated timesheets should be the same as the leave duration (1 per day between %s and %s)' % (fields.Datetime.to_string(self.leave_start_datetime), fields.Datetime.to_string(self.leave_end_datetime))) # manager refuse the leave holiday.sudo().action_refuse() |
