Install the test module in test_transaction
To get test working properly, we need the database to be created.
This commit is contained in:
1 parent
09c48a5002
commit
f7a90cef48
1 file changed
+4
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user