Browse Source

[FIX] review fixes

pull/279/head
Holger Brunn 9 years ago
parent
commit
20b029f3ef
No known key found for this signature in database GPG Key ID: 1C9760FECA3AE18
  1. 2
      partner_contact_gender/__init__.py
  2. 8
      partner_contact_gender/tests/test_partner_contact_gender.py

2
partner_contact_gender/__init__.py

@ -17,4 +17,4 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from . import models
from hooks import post_init_hook
from .hooks import post_init_hook

8
partner_contact_gender/tests/test_partner_contact_gender.py

@ -5,6 +5,14 @@ from openerp.tests.common import TransactionCase
class TestPartnerContactGender(TransactionCase):
def setUp(self):
super(TestPartnerContactGender, self).setUp()
self.testpartner = self.env['res.partner'].create({
'name': 'test',
'title': self.env.ref('base.res_partner_title_madam').id,
})
def test_partner_contact_gender(self):
from ..hooks import post_init_hook
post_init_hook(self.cr, None)
self.assertEqual(self.testpartner.gender, 'female')
Loading…
Cancel
Save