From 81cbdd74b4e4b7bfc3630a1130e83588456b2e0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 18 Mar 2014 11:33:37 +0100 Subject: [PATCH] Fix wrongly readonly started transaction in unittest --- tests/test_account_credit_limit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_account_credit_limit.py b/tests/test_account_credit_limit.py index c7e25eab66..973046ad78 100644 --- a/tests/test_account_credit_limit.py +++ b/tests/test_account_credit_limit.py @@ -30,7 +30,7 @@ class AccountCreditLimitTestCase(unittest.TestCase): def test0010check_credit_limit(self): 'Test check_credit_limit' - with Transaction().start(DB_NAME, USER, CONTEXT): + with Transaction().start(DB_NAME, USER, context=CONTEXT): receivable, = self.account.search([ ('kind', '=', 'receivable'), ])