Esempio n. 1
0
def suite():
    suite = trytond.tests.test_tryton.suite()
    from trytond.modules.company.tests import test_company
    for test in test_company.suite():
        if test not in suite and not isinstance(test, doctest.DocTestCase):
            suite.addTest(test)
    from trytond.modules.account.tests import test_account
    for test in test_account.suite():
        if test not in suite and not isinstance(test, doctest.DocTestCase):
            suite.addTest(test)
    suite.addTests(
        unittest.TestLoader().loadTestsFromTestCase(StockSupplyTestCase))
    suite.addTests(
        doctest.DocFileSuite('scenario_stock_internal_supply.rst',
                             setUp=doctest_setup,
                             tearDown=doctest_teardown,
                             encoding='utf-8',
                             optionflags=doctest.REPORT_ONLY_FIRST_FAILURE))
    suite.addTests(
        doctest.DocFileSuite('scenario_stock_supply_purchase_request.rst',
                             setUp=doctest_setup,
                             tearDown=doctest_teardown,
                             encoding='utf-8',
                             optionflags=doctest.REPORT_ONLY_FIRST_FAILURE))
    return suite
Esempio n. 2
0
def suite():
    suite = trytond.tests.test_tryton.suite()
    from trytond.modules.company.tests import test_company

    for test in test_company.suite():
        if test not in suite:
            suite.addTest(test)
    suite.addTests(unittest.TestLoader().loadTestsFromTestCase(StockTestCase))
    suite.addTests(
        doctest.DocFileSuite(
            "scenario_stock_shipment_out.rst",
            setUp=doctest_dropdb,
            tearDown=doctest_dropdb,
            encoding="utf-8",
            optionflags=doctest.REPORT_ONLY_FIRST_FAILURE,
        )
    )
    suite.addTests(
        doctest.DocFileSuite(
            "scenario_stock_average_cost_price.rst",
            setUp=doctest_dropdb,
            tearDown=doctest_dropdb,
            encoding="utf-8",
            optionflags=doctest.REPORT_ONLY_FIRST_FAILURE,
        )
    )
    return suite
Esempio n. 3
0
def suite():
    suite = trytond.tests.test_tryton.suite()
    from trytond.modules.company.tests import test_company
    for test in test_company.suite():
        if test not in suite:
            suite.addTest(test)
    suite.addTests(
        unittest.TestLoader().loadTestsFromTestCase(AccountTestCase))
    suite.addTests(
        doctest.DocFileSuite('scenario_account_reconciliation.rst',
                             setUp=doctest_setup,
                             tearDown=doctest_teardown,
                             encoding='utf-8',
                             optionflags=doctest.REPORT_ONLY_FIRST_FAILURE))
    suite.addTests(
        doctest.DocFileSuite('scenario_move_cancel.rst',
                             setUp=doctest_setup,
                             tearDown=doctest_teardown,
                             encoding='utf-8',
                             optionflags=doctest.REPORT_ONLY_FIRST_FAILURE))
    suite.addTests(
        doctest.DocFileSuite('scenario_move_template.rst',
                             setUp=doctest_setup,
                             tearDown=doctest_teardown,
                             encoding='utf-8',
                             optionflags=doctest.REPORT_ONLY_FIRST_FAILURE))
    suite.addTests(
        doctest.DocFileSuite('scenario_reports.rst',
                             setUp=doctest_setup,
                             tearDown=doctest_teardown,
                             encoding='utf-8',
                             optionflags=doctest.REPORT_ONLY_FIRST_FAILURE))
    return suite
Esempio n. 4
0
def suite():
    suite = trytond.tests.test_tryton.suite()
    from trytond.modules.company.tests import test_company
    for test in test_company.suite():
        if test not in suite:
            suite.addTest(test)
    suite.addTests(unittest.TestLoader().loadTestsFromTestCase(
        AccountTestCase))
    suite.addTests(doctest.DocFileSuite(
            'scenario_account_reconciliation.rst',
            setUp=doctest_setup, tearDown=doctest_teardown, encoding='utf-8',
            optionflags=doctest.REPORT_ONLY_FIRST_FAILURE))
    suite.addTests(doctest.DocFileSuite(
            'scenario_move_cancel.rst',
            setUp=doctest_setup, tearDown=doctest_teardown, encoding='utf-8',
            optionflags=doctest.REPORT_ONLY_FIRST_FAILURE))
    suite.addTests(doctest.DocFileSuite(
            'scenario_move_template.rst',
            setUp=doctest_setup, tearDown=doctest_teardown, encoding='utf-8',
            optionflags=doctest.REPORT_ONLY_FIRST_FAILURE))
    suite.addTests(doctest.DocFileSuite(
            'scenario_reports.rst',
            setUp=doctest_setup, tearDown=doctest_teardown, encoding='utf-8',
            optionflags=doctest.REPORT_ONLY_FIRST_FAILURE))
    return suite
Esempio n. 5
0
def suite():
    suite = trytond.tests.test_tryton.suite()
    from trytond.modules.company.tests import test_company
    for test in test_company.suite():
        if test not in suite and not isinstance(test, doctest.DocTestCase):
            suite.addTest(test)
    suite.addTests(unittest.TestLoader().loadTestsFromTestCase(
            ProjectTestCase))
    return suite
Esempio n. 6
0
def suite():
    suite = trytond.tests.test_tryton.suite()
    from trytond.modules.company.tests import test_company
    for test in test_company.suite():
        if test not in suite and not isinstance(test, doctest.DocTestCase):
            suite.addTest(test)
    suite.addTests(unittest.TestLoader().loadTestsFromTestCase(
            StockSplitTestCase))
    return suite
Esempio n. 7
0
def suite():
    suite = trytond.tests.test_tryton.suite()
    from trytond.modules.company.tests import test_company
    for test in test_company.suite():
        if test not in suite:
            suite.addTest(test)
    suite.addTests(unittest.TestLoader().loadTestsFromTestCase(
        ProjectRevenueTestCase))
    return suite
def suite():
    suite = trytond.tests.test_tryton.suite()
    from trytond.modules.company.tests import test_company
    from trytond.modules.account.tests import test_account
    for test in chain(test_company.suite(), test_account.suite()):
        if test not in suite and not isinstance(test, doctest.DocTestCase):
            suite.addTest(test)
    suite.addTests(unittest.TestLoader().loadTestsFromTestCase(
            AccountPaymentSepaTestCase))
    return suite
Esempio n. 9
0
def suite():
    suite = trytond.tests.test_tryton.suite()
    from trytond.modules.company.tests import test_company
    from trytond.modules.account.tests import test_account
    for test in chain(test_company.suite(), test_account.suite()):
        if test not in suite and not isinstance(test, doctest.DocTestCase):
            suite.addTest(test)
    suite.addTests(unittest.TestLoader().loadTestsFromTestCase(
        AccountPaymentSepaCFONBTestCase))
    return suite
Esempio n. 10
0
def suite():
    suite = trytond.tests.test_tryton.suite()

    # Needed for the creation of company
    from trytond.modules.company.tests import test_company
    for test in test_company.suite():
        if test not in suite:
            suite.addTest(test)

    suite.addTests(
        unittest.TestLoader().loadTestsFromTestCase(MoveUpdateTestCase))
    return suite
Esempio n. 11
0
def suite():
    suite = trytond.tests.test_tryton.suite()
    from trytond.modules.company.tests import test_company
    for test in test_company.suite():
        if test not in suite and not isinstance(test, doctest.DocTestCase):
            suite.addTest(test)
    suite.addTests(unittest.TestLoader().loadTestsFromTestCase(
            StockLotTestCase))
    suite.addTests(doctest.DocFileSuite('scenario_stock_lot_shipment_out.rst',
        setUp=doctest_setup, tearDown=doctest_teardown, encoding='utf-8',
            optionflags=doctest.REPORT_ONLY_FIRST_FAILURE))
    return suite
def suite():
    suite = trytond.tests.test_tryton.suite()

    # Needed for the creation of company
    from trytond.modules.company.tests import test_company
    for test in test_company.suite():
        if test not in suite:
            suite.addTest(test)

    suite.addTests(
        unittest.TestLoader().loadTestsFromTestCase(MoveUpdateTestCase)
    )
    return suite
def suite():
    suite = trytond.tests.test_tryton.suite()
    from trytond.modules.company.tests import test_company
    for test in test_company.suite():
        if test not in suite:
            suite.addTest(test)
    suite.addTests(unittest.TestLoader().loadTestsFromTestCase(
        SaleShopTestCase))
    suite.addTests(doctest.DocFileSuite(
            'scenario_sale_shop.rst',
            setUp=doctest_setup, tearDown=doctest_teardown, encoding='utf-8',
            optionflags=doctest.REPORT_ONLY_FIRST_FAILURE))
    return suite
Esempio n. 14
0
def suite():
    suite = trytond.tests.test_tryton.suite()
    from trytond.modules.company.tests import test_company
    for test in test_company.suite():
        if test not in suite and not isinstance(test, doctest.DocTestCase):
            suite.addTest(test)
    suite.addTests(
        unittest.TestLoader().loadTestsFromTestCase(StockLotTestCase))
    suite.addTests(
        doctest.DocFileSuite('scenario_stock_lot_shipment_out.rst',
                             setUp=doctest_setup,
                             tearDown=doctest_teardown,
                             encoding='utf-8',
                             optionflags=doctest.REPORT_ONLY_FIRST_FAILURE))
    return suite
def suite():
    suite = trytond.tests.test_tryton.suite()
    from trytond.modules.company.tests import test_company
    for test in test_company.suite():
        if test not in suite and not isinstance(test, doctest.DocTestCase):
            suite.addTest(test)
    from trytond.modules.account.tests import test_account
    for test in test_account.suite():
        if test not in suite and not isinstance(test, doctest.DocTestCase):
            suite.addTest(test)
    suite.addTests(unittest.TestLoader().loadTestsFromTestCase(
        PurchaseTestCase))
    suite.addTests(doctest.DocFileSuite('scenario_purchase.rst',
            setUp=doctest_setup, tearDown=doctest_teardown, encoding='UTF-8',
            optionflags=doctest.REPORT_ONLY_FIRST_FAILURE))
    return suite