From f7a90cef48911c6cd40d0cbbde087929b39f356f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 21 Nov 2011 10:19:16 +0100 Subject: [PATCH] Install the test module in test_transaction To get test working properly, we need the database to be created. --- trytond/tests/test_transaction.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/trytond/tests/test_transaction.py b/trytond/tests/test_transaction.py index 77833f0805..5299f4b13b 100644 --- a/trytond/tests/test_transaction.py +++ b/trytond/tests/test_transaction.py @@ -2,7 +2,7 @@ #This file is part of Tryton. The COPYRIGHT file at the top level of #this repository contains the full copyright notices and license terms. import unittest -from trytond.tests.test_tryton import DB_NAME, USER, CONTEXT +from trytond.tests.test_tryton import DB_NAME, USER, CONTEXT, install_module from trytond.transaction import Transaction @@ -32,6 +32,9 @@ class TransactionTestCase(unittest.TestCase): Test the Transaction Context manager ''' + def setUp(self): + install_module('test') + def test0010nonexistdb(self): ''' Attempt opening a transaction with a non existant DB and ensure that