Skip to content

Commit

Permalink
Merge pull request #187 from rlizana/8.0_l10n_es_test
Browse files Browse the repository at this point in the history
[ADD] tests a l10n_es
  • Loading branch information
pedrobaeza committed Jun 20, 2015
2 parents f16bc62 + 693f976 commit 8778ea5
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
3 changes: 3 additions & 0 deletions l10n_es/__openerp__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@
"data/account_chart_template_post.xml",
"data/l10n_es_wizard.xml",
],
'test': [
'test/tax.yml'
],
"installable": True,
'images': [
'images/config_chart_l10n_es.png',
Expand Down
25 changes: 25 additions & 0 deletions l10n_es/test/tax.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
-
Create Tax NAME
-
!record {model: account.tax, id: tax_name}:
name: NAME
description: DESCRIPTION

-
name_get return NAME
-
!python {model: account.tax, id: tax_name}: |
assert self.name_get()[0][1] == 'NAME', 'The tax name by name_get is not valid, expected name field'

-
Create Tax DESCRIPTION
-
!record {model: account.tax, id: tax_description}:
name: ''
description: DESCRIPTION

-
name_get return DESCRIPTION
-
!python {model: account.tax, id: tax_description}: |
assert self.name_get()[0][1] == 'DESCRIPTION', 'The tax name by name_get is not valid, expected description field'

0 comments on commit 8778ea5

Please sign in to comment.