From e9545aef4d7a116f62b930aac7730394daba2732 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 18 Dec 2013 18:28:57 +0100 Subject: [PATCH] Use common doctest_dropdb review2151002 --- tests/test_account_invoice.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/tests/test_account_invoice.py b/tests/test_account_invoice.py index 6fdfcbdc91..05c5b5716e 100644 --- a/tests/test_account_invoice.py +++ b/tests/test_account_invoice.py @@ -15,9 +15,8 @@ import datetime from decimal import Decimal import trytond.tests.test_tryton from trytond.tests.test_tryton import POOL, DB_NAME, USER, CONTEXT, test_view,\ - test_depends + test_depends, doctest_dropdb from trytond.transaction import Transaction -from trytond.backend.sqlite.database import Database as SQLiteDatabase class AccountInvoiceTestCase(unittest.TestCase): @@ -93,16 +92,6 @@ class AccountInvoiceTestCase(unittest.TestCase): ]) -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(