misc: fix unnecessary-lambda pylint error (#56288)

This commit is contained in:
Lauréline Guérin 2021-08-30 14:12:17 +02:00
parent bb1487919a
commit e61b40246e
No known key found for this signature in database
GPG Key ID: 1FAB9B9B4F93D473
1 changed files with 1 additions and 1 deletions

View File

@ -2116,7 +2116,7 @@ def test_page_multiple_link_cells(app, admin_user):
patched_orig = Page.get_as_reordered_flat_hierarchy
app = login(app)
with mock.patch('combo.data.models.Page.get_as_reordered_flat_hierarchy') as func:
func.side_effect = lambda *args, **kwargs: patched_orig(*args, **kwargs)
func.side_effect = patched_orig
app.get('/manage/pages/%s/' % page.id)
# only 1 call for combo.data.forms.get_page_choices
# 1 call for get_previous_page and 1 call for get_next_page