misc: fix unnecessary-lambda pylint error (#56288)
This commit is contained in:
parent
bb1487919a
commit
e61b40246e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue