Browse Source

[FIX][base_export_manager] Make tests pass

pull/870/head
Jairo Llopis 8 years ago
parent
commit
10a070eeab
  1. 3
      base_export_manager/tests/test_ir_exports_line.py

3
base_export_manager/tests/test_ir_exports_line.py

@ -37,9 +37,8 @@ class TestIrExportsLineCase(TransactionCase):
m_ir_exports_line = self.env['ir.exports.line'] m_ir_exports_line = self.env['ir.exports.line']
export_line = m_ir_exports_line.create({'name': 'parent_id/name', export_line = m_ir_exports_line.create({'name': 'parent_id/name',
'export_id': self.export.id}) 'export_id': self.export.id})
check_label = " (res.partner) (parent_id/name)"
self.assertEqual(export_line.with_context(lang="en_US").label, self.assertEqual(export_line.with_context(lang="en_US").label,
"Related Company (res.partner)/Name" + check_label)
"Related Company/Name (parent_id/name)")
with self.assertRaises(ValidationError): with self.assertRaises(ValidationError):
m_ir_exports_line.create({'name': '', m_ir_exports_line.create({'name': '',
'export_id': self.export.id}) 'export_id': self.export.id})

Loading…
Cancel
Save