From 008d9aaa8d733ca42aa14b80fddcf65a8ad6e0d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 28 Nov 2011 14:44:54 +0100 Subject: [PATCH] Fix Transaction.start to use keyword argument for context --- tests/test_account.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_account.py b/tests/test_account.py index ae635f8870..0fe137fbc6 100644 --- a/tests/test_account.py +++ b/tests/test_account.py @@ -43,7 +43,8 @@ class AccountTestCase(unittest.TestCase): def test0010account_chart(self): 'Test creation of minimal chart of accounts' - with Transaction().start(DB_NAME, USER, CONTEXT) as transaction: + with Transaction().start(DB_NAME, USER, + context=CONTEXT) as transaction: account_template_id, = self.account_template.search([ ('parent', '=', False), ])