From fa9905e335162ab48057d041a90561c6a44f7d44 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thibault=20Delavall=C3=A9e?= Date: Wed, 16 Oct 2013 14:09:29 +0200 Subject: [PATCH] [FIX] hr_holidays: fixed tests about exception raised when trying to validate too much holidays. The exception is now a Warning, not an except_orm anymore. bzr revid: tde@openerp.com-20131016120929-1pg7q4bjvpolfevj --- addons/hr_holidays/tests/test_holidays_flow.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/hr_holidays/tests/test_holidays_flow.py b/addons/hr_holidays/tests/test_holidays_flow.py index caa6e14..9b678e4 100644 --- a/addons/hr_holidays/tests/test_holidays_flow.py +++ b/addons/hr_holidays/tests/test_holidays_flow.py @@ -23,6 +23,7 @@ from datetime import datetime from dateutil.relativedelta import relativedelta from openerp.addons.hr_holidays.tests.common import TestHrHolidaysBase +from openerp.exceptions import Warning from openerp.osv.orm import except_orm from openerp.tools import mute_logger @@ -203,5 +204,5 @@ class TestHolidaysFlow(TestHrHolidaysBase): 'date_to': (datetime.today() + relativedelta(days=7)), 'number_of_days_temp': 4, }) - with self.assertRaises(except_orm): + with self.assertRaises(Warning): self.hr_holidays.signal_confirm(cr, self.user_hrmanager_id, [hol2_id]) -- 1.7.10.4