Use new doctest setup/teardown

issue3627
review7401002
This commit is contained in:
Cédric Krier committed 2014-09-04 08:44:37 +02:00
1 parent 72268ab36c
commit 89ddabe8e4
1 file changed
+3 -2
+3 -2
View File
@@ -3,7 +3,8 @@
import unittest
import doctest
import trytond.tests.test_tryton
from trytond.tests.test_tryton import test_view, test_depends, doctest_dropdb
from trytond.tests.test_tryton import test_view, test_depends
from trytond.tests.test_tryton import doctest_setup, doctest_teardown
class AccountDunningTestCase(unittest.TestCase):
@@ -27,6 +28,6 @@ def suite():
AccountDunningTestCase))
suite.addTests(doctest.DocFileSuite(
'scenario_account_dunning.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