0029-misc-fix-unnecessary-lambda-pylint-error-56288.patch
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 |
- |