Skip to content

Commit 48524bb

Browse files
author
Johannes Gijsbers
committed
Backport from HEAD:
Fix failing test: mock lambda now also takes keyword arguments.
1 parent 6a938e5 commit 48524bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_actions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def testNoWebAccess(self):
213213
'foo', 'right')
214214

215215
def testCorrectLogin(self):
216-
self.client.db.security.hasPermission = lambda a,b,c: True
216+
self.client.db.security.hasPermission = lambda *args, **kwargs: True
217217

218218
def opendb(username):
219219
self.assertEqual(username, 'foo')

0 commit comments

Comments
 (0)