Browse Source

Fix odoo version in travis config

Continue to remove dep on demo data in tests
pull/180/head
Alexis de Lattre 6 years ago
parent
commit
6f47a6f08a
  1. 2
      .travis.yml
  2. 10
      crm_phone/tests/test_crm_phone.py

2
.travis.yml

@ -15,7 +15,7 @@ python:
env: env:
global: global:
- VERSION="12.0" TESTS="0" LINT_CHECK="0" TRANSIFEX="0"
- VERSION="11.0" TESTS="0" LINT_CHECK="0" TRANSIFEX="0"
- TRANSIFEX_USER='transbot@odoo-community.org' - TRANSIFEX_USER='transbot@odoo-community.org'
- secure: LhS+tozOz65gNeGs3yQ4WQOJ6o4fljCHp/bAyHXj4QqB4NkRj7ajO92ZasvtWA4BbxDjsz+Rie3Ct9zq0Zmg05rCT58TYxoqnq2+rN+ZOqr46VYnzIk4MapHNXLQuXhAfTVqsJRdpJteF7nn2wnnc3ZDAIJTfLmP8v789iIbCcA= - secure: LhS+tozOz65gNeGs3yQ4WQOJ6o4fljCHp/bAyHXj4QqB4NkRj7ajO92ZasvtWA4BbxDjsz+Rie3Ct9zq0Zmg05rCT58TYxoqnq2+rN+ZOqr46VYnzIk4MapHNXLQuXhAfTVqsJRdpJteF7nn2wnnc3ZDAIJTfLmP8v789iIbCcA=

10
crm_phone/tests/test_crm_phone.py

@ -23,11 +23,13 @@ class TestCRMPhone(TransactionCase):
self.assertEquals(partner1.phone, '+33 4 72 08 87 32') self.assertEquals(partner1.phone, '+33 4 72 08 87 32')
self.assertEquals(partner1.mobile, '+33 6 42 77 42 66') self.assertEquals(partner1.mobile, '+33 6 42 77 42 66')
# Create a partner with country # Create a partner with country
self.env.ref('base.res_partner_12').country_id =\
self.env.ref('base.ch').id
parent_partner2 = rpo.create({
'name': 'C2C',
'country_id': self.env.ref('base.ch').id,
})
partner2 = rpo.create({ partner2 = rpo.create({
'name': 'Joël Grand-Guillaume', 'name': 'Joël Grand-Guillaume',
'parent_id': self.env.ref('base.res_partner_12').id,
'parent_id': parent_partner2.id,
'phone': '(0) 21 619 10 10', 'phone': '(0) 21 619 10 10',
'mobile': '(0) 79 606 42 42', 'mobile': '(0) 79 606 42 42',
}) })
@ -56,7 +58,7 @@ class TestCRMPhone(TransactionCase):
name = pco.get_name_from_phone_number('0642774266') name = pco.get_name_from_phone_number('0642774266')
self.assertEquals(name, 'Pierre Paillet') self.assertEquals(name, 'Pierre Paillet')
name2 = pco.get_name_from_phone_number('0041216191010') name2 = pco.get_name_from_phone_number('0041216191010')
self.assertEquals(name2, 'Camptocamp, Joël Grand-Guillaume')
self.assertEquals(name2, 'C2C, Joël Grand-Guillaume')
# Test against the POS bug # Test against the POS bug
# https://github.com/OCA/connector-telephony/issues/113 # https://github.com/OCA/connector-telephony/issues/113
# When we edit/create a partner from the POS, # When we edit/create a partner from the POS,

Loading…
Cancel
Save