From d32d02ecb5140e4ba834a52ff8e3e64fd0c6ad35 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Tue, 13 Feb 2024 16:26:29 -0800 Subject: [PATCH] gitweb, users: Minor fixes for newer pycodestyle Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/gitweb/tests/test_views.py | 2 +- plinth/modules/users/tests/test_views.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plinth/modules/gitweb/tests/test_views.py b/plinth/modules/gitweb/tests/test_views.py index 1bf20ffec..eae5da05f 100644 --- a/plinth/modules/gitweb/tests/test_views.py +++ b/plinth/modules/gitweb/tests/test_views.py @@ -53,7 +53,7 @@ def gitweb_patch(): with patch('plinth.modules.gitweb.get_repo_list') as get_repo_list, \ patch('plinth.app.App.get') as app_get, \ patch(f'{privileged}.create_repo'), \ - patch(f'{privileged}.repo_exists') as repo_exists,\ + patch(f'{privileged}.repo_exists') as repo_exists, \ patch(f'{privileged}.repo_info') as repo_info, \ patch(f'{privileged}.rename_repo'), \ patch(f'{privileged}.set_repo_description'), \ diff --git a/plinth/modules/users/tests/test_views.py b/plinth/modules/users/tests/test_views.py index badb05c59..ec4751beb 100644 --- a/plinth/modules/users/tests/test_views.py +++ b/plinth/modules/users/tests/test_views.py @@ -72,9 +72,9 @@ def make_request(request, view, as_admin=True, **kwargs): request.user = admin_user if as_admin else user with patch('plinth.modules.users.forms.is_user_admin', - return_value=as_admin),\ + return_value=as_admin), \ patch('plinth.modules.users.views.is_user_admin', - return_value=as_admin),\ + return_value=as_admin), \ patch('plinth.modules.users.views.update_session_auth_hash'): response = view(request, **kwargs)