Fix states definition and cleanup tests

This commit is contained in:
Sergi Almacellas Abellana 2014-06-18 11:28:14 +02:00
parent 73a3708a8a
commit fa244353e3
2 changed files with 2 additions and 6 deletions

View File

@ -11,7 +11,7 @@ __all__ = ['Sector', 'PartySector', 'Party', 'ProductSector', 'Product',
__metaclass__ = PoolMeta
STATES = {
'readonly': Eval('active'),
'readonly': Eval('active', False),
}
DEPENDS = ['active']

View File

@ -3,7 +3,7 @@
# copyright notices and license terms.
import unittest
import trytond.tests.test_tryton
from trytond.tests.test_tryton import test_view, test_depends # , doctest_dropdb TODO: Remove if no sceneario needed.
from trytond.tests.test_tryton import test_view, test_depends
class TestCase(unittest.TestCase):
@ -24,8 +24,4 @@ class TestCase(unittest.TestCase):
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_party_sectors.rst',
# setUp=doctest_dropdb, tearDown=doctest_dropdb, encoding='utf-8',
# optionflags=doctest.REPORT_ONLY_FIRST_FAILURE))
return suite