diff --git a/CHANGELOG b/CHANGELOG index 909b4eb..ae81dbb 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1 +1,2 @@ +Version 3.4.0 - 2015-01-22 * Initial release diff --git a/farm.py b/farm.py index 7bf7b68..7a37397 100644 --- a/farm.py +++ b/farm.py @@ -170,7 +170,7 @@ class CreateBreeding(Wizard): breeding_group.save() breeding_account.name = breeding_group.number - breeding_account.animal_groups.append(breeding_group.id) + breeding_account.animal_groups += (breeding_group.id,) breeding_account.save() setattr(self.start.location, diff --git a/tests/test_farm_breeding.py b/tests/test_farm_breeding.py index 16b1136..18db81f 100644 --- a/tests/test_farm_breeding.py +++ b/tests/test_farm_breeding.py @@ -1,20 +1,9 @@ -#!/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 -# TODO: Remove if no sceneario needed -# import doctest + import trytond.tests.test_tryton from trytond.tests.test_tryton import test_view, test_depends -# TODO: Remove if no scenario needed -# from trytond.backend.sqlite.database import Database as SQLiteDatabase class TestCase(unittest.TestCase): @@ -38,25 +27,7 @@ class TestCase(unittest.TestCase): test_depends() -# TODO: Remove if no scenario needed -# 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)) - # TODO: Remove if no scenario needed - #suite.addTests(doctest.DocFileSuite('scenario_invoice.rst', - # setUp=doctest_dropdb, tearDown=doctest_dropdb, 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 99dffac..03811f4 100644 --- a/tryton.cfg +++ b/tryton.cfg @@ -1,5 +1,5 @@ [tryton] -version=3.0.0 +version=3.4.0 depends: analytic_account analytic_line_state