From 528fd7c2cb352d60b44442bcd45359f199bd151c Mon Sep 17 00:00:00 2001 From: Xavier ALT Date: Tue, 30 Oct 2012 21:55:14 +0100 Subject: [PATCH] [TEST] update test for resource interval_hours_get() Change test from ">" to ">=" 27, as we now have a correct calculation we will get exactly 27 hours for 'resource_developer' if test is done after 18h00 (5 working day of 9 hours, minus Monday - not included in interval as dt_from after working hours, minus Thursday - leave day) bzr revid: xal@openerp.com-20121030205514-gyf925370alc9lf8 --- addons/resource/test/resource.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/resource/test/resource.yml b/addons/resource/test/resource.yml index 5b7fa108101..bce671549d7 100644 --- a/addons/resource/test/resource.yml +++ b/addons/resource/test/resource.yml @@ -45,7 +45,7 @@ dt_from = now - timedelta(days=now.weekday()) dt_to = dt_from+ timedelta(days=6) hours = self.interval_hours_get(cr, uid, ref('timesheet_group1'), dt_from, dt_to, resource=ref('resource_developer')) - assert hours > 27 , 'Invalid Total Week working hour calculated' + assert hours >= 27 , 'Invalid Total Week working hour calculated' - Project Analysis work is of 20 hours which will start from Week start so i will calculate working schedule for resource Analyst for the same. -