Browse Source

Fix test case

Tip cortesy of Nicolas Schmitt <n.schmitt@protelcotelsa.com>
pull/29/head
Jos De Graeve 10 years ago
parent
commit
da45e8d0a0
  1. 4
      pos_require_customer/tests/test_pos.py

4
pos_require_customer/tests/test_pos.py

@ -31,10 +31,8 @@ class TestPosRequireCustomer(common.TransactionCase):
pos_session = self.env['pos.session'].create( pos_session = self.env['pos.session'].create(
{'config_id': posconfig.id}) {'config_id': posconfig.id})
# should raise exceptions.ValidationError # should raise exceptions.ValidationError
self.assertRaises(
exceptions.ValidationError,
with self.assertRaises(exceptions.ValidationError):
self.env['pos.order'].create({ self.env['pos.order'].create({
'session_id': pos_session.id, 'session_id': pos_session.id,
'partner_id': False, 'partner_id': False,
}) })
)
Loading…
Cancel
Save