diff --git a/CHANGELOG b/CHANGELOG index a98a8ee..4597cc8 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,11 @@ +Version 3.4.0 - 2014-11-03 + +Version 3.2.0 - 2014-05-22 + +Version 3.0.0 - 2013-10-25 + +Version 2.8.0 - 2013-04-26 + Version 2.6.0 - 2012-10-17 * Active Record * Simplify module information with python configuration diff --git a/tests/test_account_invoice_taxes_required.py b/tests/test_account_invoice_taxes_required.py index 8061ed3..a52e06d 100644 --- a/tests/test_account_invoice_taxes_required.py +++ b/tests/test_account_invoice_taxes_required.py @@ -1,55 +1,31 @@ #!/usr/bin/env python -#This file is part account_invoice_taxes_required module for Tryton. -#The COPYRIGHT file at the top level of this repository contains -#the full copyright notices and license terms. -import sys -import os -DIR = os.path.abspath(os.path.normpath(os.path.join(__file__, - '..', '..', '..', '..', '..', 'trytond'))) -if os.path.isdir(DIR): - sys.path.insert(0, os.path.dirname(DIR)) - +# This file is part account_invoice_taxes_required module for Tryton. +# The COPYRIGHT file at the top level of this repository contains +# the full copyright notices and license terms. import unittest import doctest import trytond.tests.test_tryton from trytond.tests.test_tryton import test_depends -from trytond.backend.sqlite.database import Database as SQLiteDatabase +from trytond.tests.test_tryton import doctest_setup, doctest_teardown class AccountInvoiceTaxesRequiredTestCase(unittest.TestCase): - ''' - Test Account Invoice Taxes Required module. - ''' + 'Test Account Invoice Taxes Required module' def setUp(self): trytond.tests.test_tryton.install_module( 'account_invoice_taxes_required') def test0006depends(self): - ''' - Test depends. - ''' + 'Test depends' test_depends() -def doctest_dropdb(test): - database = SQLiteDatabase().connect() - cursor = database.cursor(autocommit=True) - try: - database.drop(cursor, ':memory:') - cursor.commit() - finally: - cursor.close() - - def suite(): suite = trytond.tests.test_tryton.suite() suite.addTests(unittest.TestLoader().loadTestsFromTestCase( AccountInvoiceTaxesRequiredTestCase)) suite.addTests(doctest.DocFileSuite('scenario_invoice_taxes_required.rst', - setUp=doctest_dropdb, tearDown=doctest_dropdb, encoding='utf-8', + setUp=doctest_setup, tearDown=doctest_teardown, encoding='utf-8', optionflags=doctest.REPORT_ONLY_FIRST_FAILURE)) return suite - -if __name__ == '__main__': - unittest.TextTestRunner(verbosity=2).run(suite()) diff --git a/tryton.cfg b/tryton.cfg index 7113a76..6dbb901 100644 --- a/tryton.cfg +++ b/tryton.cfg @@ -1,5 +1,5 @@ [tryton] -version=3.2.0 +version=3.4.0 depends: ir account