Browse Source

[IMP] mis_builder: add doctests to the test suite

pull/189/head
Stéphane Bidoul 8 years ago
parent
commit
6da30675e4
  1. 3
      mis_builder/tests/__init__.py
  2. 12
      mis_builder/tests/test_accounting_none.py
  3. 12
      mis_builder/tests/test_aggregate.py
  4. 12
      mis_builder/tests/test_simple_array.py

3
mis_builder/tests/__init__.py

@ -2,4 +2,7 @@
# © 2014-2015 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from . import test_accounting_none
from . import test_aggregate
from . import test_mis_builder
from . import test_simple_array

12
mis_builder/tests/test_accounting_none.py

@ -0,0 +1,12 @@
# -*- coding: utf-8 -*-
# © 2014-2015 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
import doctest
from openerp.addons.mis_builder.models import accounting_none
def load_tests(loader, tests, ignore):
tests.addTests(doctest.DocTestSuite(accounting_none))
return tests

12
mis_builder/tests/test_aggregate.py

@ -0,0 +1,12 @@
# -*- coding: utf-8 -*-
# © 2014-2015 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
import doctest
from openerp.addons.mis_builder.models import aggregate
def load_tests(loader, tests, ignore):
tests.addTests(doctest.DocTestSuite(aggregate))
return tests

12
mis_builder/tests/test_simple_array.py

@ -0,0 +1,12 @@
# -*- coding: utf-8 -*-
# © 2014-2015 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
import doctest
from openerp.addons.mis_builder.models import simple_array
def load_tests(loader, tests, ignore):
tests.addTests(doctest.DocTestSuite(simple_array))
return tests
Loading…
Cancel
Save