Fix Transaction.start to use keyword argument for context
This commit is contained in:
1 parent
80b33f272c
commit
b301056ff2
1 file changed
+4
-3
+4
-3
@@ -52,7 +52,7 @@ class StockTestCase(unittest.TestCase):
|
||||
'''
|
||||
Test Move.internal_quantity.
|
||||
'''
|
||||
with Transaction().start(DB_NAME, USER, CONTEXT):
|
||||
with Transaction().start(DB_NAME, USER, context=CONTEXT):
|
||||
category_id = self.category.create({
|
||||
'name': 'Test Move.internal_quantity',
|
||||
})
|
||||
@@ -108,7 +108,8 @@ class StockTestCase(unittest.TestCase):
|
||||
'''
|
||||
Test products_by_location.
|
||||
'''
|
||||
with Transaction().start(DB_NAME, USER, CONTEXT) as transaction:
|
||||
with Transaction().start(DB_NAME, USER,
|
||||
context=CONTEXT) as transaction:
|
||||
category_id = self.category.create({
|
||||
'name': 'Test products_by_location',
|
||||
})
|
||||
@@ -301,7 +302,7 @@ class StockTestCase(unittest.TestCase):
|
||||
'''
|
||||
Test period.
|
||||
'''
|
||||
with Transaction().start(DB_NAME, USER, CONTEXT):
|
||||
with Transaction().start(DB_NAME, USER, context=CONTEXT):
|
||||
category_id = self.category.create({
|
||||
'name': 'Test period',
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user