Loading tests/scenario_member.rst +1 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ Imports:: >>> from decimal import * >>> today = datetime.date.today() Install associatio:: Install association:: >>> config = activate_modules('association') Loading tests/scenario_membership.rst +1 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ Imports:: >>> from decimal import * >>> today = datetime.date.today() Install associatio:: Install association:: >>> config = activate_modules('association') Loading tests/scenario_membership_fee.rst +1 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ Imports:: >>> from decimal import * >>> today = datetime.date.today() Install associatio:: Install association:: >>> config = activate_modules('association') Loading tests/test_association.py +21 −15 Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ import doctest from trytond.tests.test_tryton import ModuleTestCase from trytond.tests.test_tryton import suite as test_suite from trytond.tests.test_tryton import doctest_setup, doctest_teardown, doctest_checker from trytond.tests.test_tryton import doctest_teardown, doctest_checker class AssociationTestCase(ModuleTestCase): Loading @@ -13,18 +13,24 @@ class AssociationTestCase(ModuleTestCase): def suite(): suite = test_suite() suite.addTests(unittest.TestLoader().loadTestsFromTestCase( AssociationTestCase)) suite.addTests(doctest.DocFileSuite('scenario_membership.rst', tearDown=doctest_teardown, encoding='utf-8', suite.addTests( unittest.TestLoader().loadTestsFromTestCase(AssociationTestCase)) suite.addTests( doctest.DocFileSuite('scenario_membership.rst', tearDown=doctest_teardown, encoding='utf-8', optionflags=doctest.REPORT_ONLY_FIRST_FAILURE, checker=doctest_checker)) suite.addTests(doctest.DocFileSuite('scenario_member.rst', tearDown=doctest_teardown, encoding='utf-8', suite.addTests( doctest.DocFileSuite('scenario_member.rst', tearDown=doctest_teardown, encoding='utf-8', optionflags=doctest.REPORT_ONLY_FIRST_FAILURE, checker=doctest_checker)) suite.addTests(doctest.DocFileSuite('scenario_membership_fee.rst', tearDown=doctest_teardown, encoding='utf-8', suite.addTests( doctest.DocFileSuite('scenario_membership_fee.rst', tearDown=doctest_teardown, encoding='utf-8', optionflags=doctest.REPORT_ONLY_FIRST_FAILURE, checker=doctest_checker)) return suite Loading
tests/scenario_member.rst +1 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ Imports:: >>> from decimal import * >>> today = datetime.date.today() Install associatio:: Install association:: >>> config = activate_modules('association') Loading
tests/scenario_membership.rst +1 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ Imports:: >>> from decimal import * >>> today = datetime.date.today() Install associatio:: Install association:: >>> config = activate_modules('association') Loading
tests/scenario_membership_fee.rst +1 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ Imports:: >>> from decimal import * >>> today = datetime.date.today() Install associatio:: Install association:: >>> config = activate_modules('association') Loading
tests/test_association.py +21 −15 Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ import doctest from trytond.tests.test_tryton import ModuleTestCase from trytond.tests.test_tryton import suite as test_suite from trytond.tests.test_tryton import doctest_setup, doctest_teardown, doctest_checker from trytond.tests.test_tryton import doctest_teardown, doctest_checker class AssociationTestCase(ModuleTestCase): Loading @@ -13,18 +13,24 @@ class AssociationTestCase(ModuleTestCase): def suite(): suite = test_suite() suite.addTests(unittest.TestLoader().loadTestsFromTestCase( AssociationTestCase)) suite.addTests(doctest.DocFileSuite('scenario_membership.rst', tearDown=doctest_teardown, encoding='utf-8', suite.addTests( unittest.TestLoader().loadTestsFromTestCase(AssociationTestCase)) suite.addTests( doctest.DocFileSuite('scenario_membership.rst', tearDown=doctest_teardown, encoding='utf-8', optionflags=doctest.REPORT_ONLY_FIRST_FAILURE, checker=doctest_checker)) suite.addTests(doctest.DocFileSuite('scenario_member.rst', tearDown=doctest_teardown, encoding='utf-8', suite.addTests( doctest.DocFileSuite('scenario_member.rst', tearDown=doctest_teardown, encoding='utf-8', optionflags=doctest.REPORT_ONLY_FIRST_FAILURE, checker=doctest_checker)) suite.addTests(doctest.DocFileSuite('scenario_membership_fee.rst', tearDown=doctest_teardown, encoding='utf-8', suite.addTests( doctest.DocFileSuite('scenario_membership_fee.rst', tearDown=doctest_teardown, encoding='utf-8', optionflags=doctest.REPORT_ONLY_FIRST_FAILURE, checker=doctest_checker)) return suite