Migrate to version 3.4

This commit is contained in:
Sergi Almacellas Abellana 2014-11-05 09:28:18 +01:00
parent bbb3628bbb
commit 0cd91d1a19
4 changed files with 13 additions and 24 deletions

View File

@ -1 +1,6 @@
Version 3.4.0 - 2014-11-03
Version 3.2.0 - 2014-06-02
Version 3.0.0 - 2013-11-11
* Initial release * Initial release

View File

@ -4,8 +4,8 @@ from trytond.pool import Pool
from trytond.pyson import Eval, Bool, If from trytond.pyson import Eval, Bool, If
from trytond.transaction import Transaction from trytond.transaction import Transaction
from trytond.wizard import Wizard, StateView, StateAction, Button from trytond.wizard import Wizard, StateView, StateAction, Button
from trytond.config import CONFIG from trytond.config import config
DIGITS = int(CONFIG.get('unit_price_digits', 4)) DIGITS = int(config.get('digits', 'unit_price_digits', 4))
__all__ = ['PlanCostType', 'Plan', 'PlanBOM', 'PlanProductLine', 'PlanCost', __all__ = ['PlanCostType', 'Plan', 'PlanBOM', 'PlanProductLine', 'PlanCost',
'CreateBomStart', 'CreateBom'] 'CreateBomStart', 'CreateBom']

View File

@ -5,44 +5,28 @@ import unittest
import doctest import doctest
import trytond.tests.test_tryton import trytond.tests.test_tryton
from trytond.tests.test_tryton import test_view, test_depends from trytond.tests.test_tryton import test_view, test_depends
from trytond.backend.sqlite.database import Database as SQLiteDatabase from trytond.tests.test_tryton import doctest_setup, doctest_teardown
class TestCase(unittest.TestCase): class TestCase(unittest.TestCase):
''' 'Test module'
Test module.
'''
def setUp(self): def setUp(self):
trytond.tests.test_tryton.install_module('product_cost_plan') trytond.tests.test_tryton.install_module('product_cost_plan')
def test0005views(self): def test0005views(self):
''' 'Test views'
Test views.
'''
test_view('product_cost_plan') test_view('product_cost_plan')
def test0006depends(self): def test0006depends(self):
''' 'Test depends'
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(): def suite():
suite = trytond.tests.test_tryton.suite() suite = trytond.tests.test_tryton.suite()
suite.addTests(unittest.TestLoader().loadTestsFromTestCase(TestCase)) suite.addTests(unittest.TestLoader().loadTestsFromTestCase(TestCase))
suite.addTests(doctest.DocFileSuite('scenario_product_cost_plan.rst', suite.addTests(doctest.DocFileSuite('scenario_product_cost_plan.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)) optionflags=doctest.REPORT_ONLY_FIRST_FAILURE))
return suite return suite

View File

@ -1,5 +1,5 @@
[tryton] [tryton]
version=3.2.0 version=3.4.0
depends: depends:
production production
xml: xml: