Migrate to version 3.4

This commit is contained in:
Sergi Almacellas Abellana 2014-11-05 10:10:48 +01:00
parent 9c73bd0c94
commit e448596370
3 changed files with 9 additions and 22 deletions

View File

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

View File

@ -5,44 +5,28 @@ import unittest
import doctest
import trytond.tests.test_tryton
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):
'''
Test module.
'''
'Test module'
def setUp(self):
trytond.tests.test_tryton.install_module('production_operation')
def test0005views(self):
'''
Test views.
'''
'Test views'
test_view('production_operation')
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(TestCase))
suite.addTests(doctest.DocFileSuite('scenario_production_operation.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

View File

@ -1,5 +1,5 @@
[tryton]
version=3.2.0
version=3.4.0
depends:
production_route
extras_depend: