test: correct some try/except test
bzr revid: laetitia.gangloff@acsone.eu-20130809070605-w6ti80ljpv5zsh2p
This commit is contained in:
parent
3a369e15c2
commit
c167918f88
|
@ -81,7 +81,7 @@
|
||||||
'active_model': 'ir.ui.menu', 'journal_type': 'purchase', 'active_ids': [ref('menu_action_invoice_tree2')],
|
'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')})
|
'type': 'in_invoice', 'active_id': ref('menu_action_invoice_tree2')})
|
||||||
assert False, "This should never happen!"
|
assert False, "This should never happen!"
|
||||||
except osv.except_osv, e:
|
except osv.except_osv:
|
||||||
pass
|
pass
|
||||||
-
|
-
|
||||||
I verify that 'Period Sum' and 'Year sum' of the tax code are the expected values
|
I verify that 'Period Sum' and 'Year sum' of the tax code are the expected values
|
||||||
|
|
|
@ -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"),
|
[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"
|
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
|
pass
|
||||||
-
|
-
|
||||||
I Modified the timesheet record and make the difference less than 1 hour.
|
I Modified the timesheet record and make the difference less than 1 hour.
|
||||||
|
|
Loading…
Reference in New Issue