test: correct some try/except test

bzr revid: laetitia.gangloff@acsone.eu-20130809070605-w6ti80ljpv5zsh2p
This commit is contained in:
Laetitia Gangloff (Acsone) 2013-08-09 09:06:05 +02:00
parent 3a369e15c2
commit c167918f88
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@
'active_model': 'ir.ui.menu', 'journal_type': 'purchase', 'active_ids': [ref('menu_action_invoice_tree2')],
'type': 'in_invoice', 'active_id': ref('menu_action_invoice_tree2')})
assert False, "This should never happen!"
except osv.except_osv, e:
except osv.except_osv:
pass
-
I verify that 'Period Sum' and 'Year sum' of the tax code are the expected values

View File

@ -67,7 +67,7 @@
[ref("hr_timesheet_sheet.menu_act_hr_timesheet_sheet_form")],"active_id": ref("hr_timesheet_sheet.menu_act_hr_timesheet_sheet_form"),
})
assert False, "The validation of the timesheet was unexpectedly accepted despite the 2:30 hours of difference"
except osv.except_osv, e:
except osv.except_osv:
pass
-
I Modified the timesheet record and make the difference less than 1 hour.