[FIX] project_long_term: fix case1 test so it works during week-ends too
bzr revid: odo@openerp.com-20111105164754-yi4mo2pf6yy50ud6
This commit is contained in:
@@ -65,7 +65,7 @@
|
||||
start = (datetime.date.today()).strftime('%Y-%m-%d')
|
||||
end = (datetime.date.today() + relativedelta(days=1)).strftime('%Y-%m-%d 17:00:00')
|
||||
first_phase = self.browse(cr, uid, ref('project_phase_firstphase0_case1'))
|
||||
assert (first_phase.date_start[:10] == start),'Start dates are wrong: %s != %s !' % (first_phase.date_start[:10], start)
|
||||
assert (first_phase.date_start[:10] >= start),'Start dates are wrong: %s < %s !' % (first_phase.date_start[:10], start)
|
||||
assert (first_phase.date_end >= end),'End dates are wrong: %s <%s!' % (first_phase.date_end, end)
|
||||
|
||||
second_phase = self.browse(cr, uid, ref('project_phase_secondphase0_case2'))
|
||||
|
||||
Reference in New Issue
Block a user