Projet

Général

Profil

0029-misc-fix-unnecessary-lambda-pylint-error-56288.patch

Lauréline Guérin, 30 août 2021 17:54

Télécharger (1,02 ko)

Voir les différences:

Subject: [PATCH 29/31] misc: fix unnecessary-lambda pylint error (#56288)

 tests/test_manager.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/test_manager.py
2116 2116
    patched_orig = Page.get_as_reordered_flat_hierarchy
2117 2117
    app = login(app)
2118 2118
    with mock.patch('combo.data.models.Page.get_as_reordered_flat_hierarchy') as func:
2119
        func.side_effect = lambda *args, **kwargs: patched_orig(*args, **kwargs)
2119
        func.side_effect = patched_orig
2120 2120
        app.get('/manage/pages/%s/' % page.id)
2121 2121
        # only 1 call for combo.data.forms.get_page_choices
2122 2122
        # 1 call for get_previous_page and 1 call for get_next_page
2123
-