Skip to content

Commit

Permalink
Merge pull request #609 from OCA/fix/pysped-travis
Browse files Browse the repository at this point in the history
[FIX] PySPED on travis
  • Loading branch information
mileo committed Aug 18, 2018
2 parents a07bccc + 72aa7f1 commit bf42eac
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ install:
- pip install sh
- pip install https://github.com/odoo-brazil/pyxmlsec/archive/master.zip
- pip install https://github.com/odoo-brazil/geraldo/archive/master.zip
- pip install https://github.com/aricaldeira/PySPED/archive/master.zip#egg=PySPED-1.1.0 --allow-external PyXMLSec --allow-insecure PyXMLSec
- pip install https://github.com/odoo-brazil/pybrasil/archive/master.zip
- pip install https://github.com/odoo-brazil/PySPED/archive/8.0.zip

before_script:
- chmod +x configure_locale.sh
Expand Down
12 changes: 6 additions & 6 deletions l10n_br_base/test/res_company_test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-
Company with valid CNPJ and Iscrição Estadual
Company with valid CNPJ and Inscricao Estadual
-
!python {model: res.company}: |
from openerp.exceptions import ValidationError
Expand All @@ -11,7 +11,7 @@
'inscr_est': '081.981.37-6',
'street': 'Rod BR-101 Norte Contorno',
'number': '955',
'street2': 'Portão 1',
'street2': 'Portao 1',
'district': 'Jardim da Saudade',
'state_id': ref('l10n_br_base.br_es'),
'l10n_br_city_id': ref('l10n_br_base.city_3205002'),
Expand All @@ -36,7 +36,7 @@
'inscr_est': '385.611.86-2',
'street': 'Rod BR-101 Norte Contorno',
'number': '955',
'street2': 'Portão 1',
'street2': 'Portao 1',
'district': 'Jardim da Saudade',
'state_id': ref('l10n_br_base.br_es'),
'l10n_br_city_id': ref('l10n_br_base.city_3205002'),
Expand All @@ -49,7 +49,7 @@
except ValidationError:
assert id, "CNPJ Validation Error"
-
Company with invalid Iscrição Estadual
Company with invalid Inscricao Estadual
-
!python {model: res.company}: |
from openerp.exceptions import ValidationError
Expand All @@ -61,7 +61,7 @@
'inscr_est': '924.511.27-0',
'street': 'Rod BR-101 Norte Contorno',
'number': '955',
'street2': 'Portão 1',
'street2': 'Portao 1',
'district': 'Jardim da Saudade',
'state_id': ref('l10n_br_base.br_es'),
'l10n_br_city_id': ref('l10n_br_base.city_3205002'),
Expand All @@ -72,4 +72,4 @@
'email': 'contact@companytest.com.br',
'website': 'www.companytest.com.br'})
except ValidationError:
assert id, "Inscrição Estadual Validation Error"
assert id, "Inscricao Estadual Validation Error"
12 changes: 6 additions & 6 deletions l10n_br_base/test/res_partner_test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-
Partner with valid CNPJ and Iscrição Estadual
Partner with valid CNPJ and Iscricao Estadual
-
!python {model: res.partner}: |
from openerp.exceptions import ValidationError
Expand All @@ -11,7 +11,7 @@
'inscr_est': '176.754.07-5',
'street': 'Rod BR-101 Norte Contorno',
'number': '955',
'street2': 'Portão 1',
'street2': 'Portao 1',
'district': 'Jardim da Saudade',
'state_id': ref('l10n_br_base.br_es'),
'l10n_br_city_id': ref('l10n_br_base.city_3205002'),
Expand All @@ -36,7 +36,7 @@
'inscr_est': '538.759.92-5',
'street': 'Rod BR-101 Norte Contorno',
'number': '955',
'street2': 'Portão 1',
'street2': 'Portao 1',
'district': 'Jardim da Saudade',
'state_id': ref('l10n_br_base.br_es'),
'l10n_br_city_id': ref('l10n_br_base.city_3205002'),
Expand All @@ -49,7 +49,7 @@
except ValidationError:
assert id, "CNPJ Validation Error"
-
Partner with invalid Iscrição Estadual
Partner with invalid Iscricao Estadual
-
!python {model: res.partner}: |
from openerp.exceptions import ValidationError
Expand All @@ -61,7 +61,7 @@
'inscr_est': '576.302.93-4',
'street': 'Rod BR-101 Norte Contorno',
'number': '955',
'street2': 'Portão 1',
'street2': 'Portao 1',
'district': 'Jardim da Saudade',
'state_id': ref('l10n_br_base.br_es'),
'l10n_br_city_id': ref('l10n_br_base.city_3205002'),
Expand All @@ -72,4 +72,4 @@
'email': 'contact@partnertest.com.br',
'website': 'www.partnertest.com.br'})
except ValidationError:
assert id, "Inscrição Estadual Validation Error"
assert id, "Inscricao Estadual Validation Error"

0 comments on commit bf42eac

Please sign in to comment.