Fix states definition and cleanup tests
This commit is contained in:
parent
73a3708a8a
commit
fa244353e3
|
@ -11,7 +11,7 @@ __all__ = ['Sector', 'PartySector', 'Party', 'ProductSector', 'Product',
|
|||
__metaclass__ = PoolMeta
|
||||
|
||||
STATES = {
|
||||
'readonly': Eval('active'),
|
||||
'readonly': Eval('active', False),
|
||||
}
|
||||
DEPENDS = ['active']
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue