mirror of
https://github.com/NaN-tic/trytond-account_invoice_taxes_required.git
synced 2023-12-14 04:32:55 +01:00
Migrate to version 3.4
This commit is contained in:
parent
0ed396aaca
commit
e9bea624d2
|
@ -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
|
||||
|
|
|
@ -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())
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[tryton]
|
||||
version=3.2.0
|
||||
version=3.4.0
|
||||
depends:
|
||||
ir
|
||||
account
|
||||
|
|
Loading…
Reference in a new issue