Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[REF] moving tests files from l10n_br_account to l10n_br_fiscal
- Loading branch information
1 parent
35ab084
commit c922209
Showing
11 changed files
with
66 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html | ||
|
||
from . import models | ||
#from . import wizards | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html | ||
|
||
from . import account_tax_group | ||
from . import account_tax_abstract | ||
from . import account_tax_template | ||
from . import account_tax | ||
from . import fiscal_tax | ||
from . import account_fiscal_position_abstract | ||
from . import account_fiscal_position_template | ||
from . import account_fiscal_position | ||
from . import res_company | ||
from . import account_journal | ||
from . import account_invoice | ||
from . import account_invoice_line | ||
from . import product_template | ||
from . import operation | ||
from . import account_move_line | ||
# from . import account_fiscal_position_abstract | ||
# from . import account_fiscal_position_template | ||
# from . import account_fiscal_position | ||
# from . import res_company | ||
# from . import account_journal | ||
# from . import account_invoice | ||
# from . import account_invoice_line | ||
# from . import product_template | ||
# from . import operation | ||
# from . import account_move_line | ||
# from . import wizard_multi_charts_accounts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html | ||
|
||
from . import test_account_customer_invoice | ||
from . import test_account_supplier_invoice | ||
from . import test_generate_fiscal_rules | ||
from . import test_fiscal_partner_type | ||
from . import test_account_service_type | ||
from . import test_account_cnae | ||
# from . import test_account_customer_invoice | ||
# from . import test_account_supplier_invoice | ||
# from . import test_generate_fiscal_rules |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
from . import test_cnae | ||
from . import test_service_type | ||
from . import test_partner_profile | ||
from . import test_ibpt_product | ||
from . import test_ibpt_service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# @ 2018 Akretion - www.akretion.com.br - | ||
# Magno Costa <magno.costa@akretion.com.br> | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
from odoo.tests.common import TransactionCase | ||
|
||
|
||
class TestCNAE(TransactionCase): | ||
def test_name_get(self): | ||
self.cnae = self.env['l10n_br_fiscal.cnae'].create({ | ||
'code': 'TESTE', | ||
'name': 'TESTE', | ||
'version': 'TESTE', | ||
'internal_type': 'normal'}) | ||
assert(self.cnae.name_get(), | ||
'Error with function name_get() of object l10n_br_account.cnae') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# @ 2018 Akretion - www.akretion.com.br - | ||
# Magno Costa <magno.costa@akretion.com.br> | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
from odoo.tests.common import TransactionCase | ||
|
||
|
||
class TestServiceType(TransactionCase): | ||
def test_name_get(self): | ||
self.service_type = self.env['l10n_br_fiscal.service.type'].create({ | ||
'code': 'TESTE', | ||
'name': 'TESTE', | ||
'internal_type': 'normal'}) | ||
assert(self.service_type.name_get(), | ||
'Error with function name_get() of object ' | ||
'l10n_br_fiscal.service.type') |