Adapted to 3.4

This commit is contained in:
Guillem Barba 2015-01-22 17:52:12 +01:00
parent 1b0124ef14
commit fe6e436c1d
4 changed files with 6 additions and 31 deletions

View File

@ -1 +1,2 @@
Version 3.4.0 - 2015-01-22
* Initial release

View File

@ -12,11 +12,6 @@
<field name="user" ref="res.user_admin"/>
<field name="group" ref="group_nutrition_program"/>
</record>
<record model="res.user-res.group"
id="user_trigger_group_nutrition_programs">
<field name="user" ref="res.user_trigger"/>
<field name="group" ref="group_nutrition_program"/>
</record>
<!-- farm.nutrition.program -->
<record model="ir.ui.view" id="nutrition_program_view_form">

View File

@ -1,19 +1,11 @@
#!/usr/bin/env python
# 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))
import unittest
import doctest
import unittest
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):
@ -37,23 +29,10 @@ class TestCase(unittest.TestCase):
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_nutrition_program.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())

View File

@ -1,5 +1,5 @@
[tryton]
version=3.0.1
version=3.4.0
depends:
farm
xml: