From e9f9d33abce63346f40ed8388d3566298e1f56d3 Mon Sep 17 00:00:00 2001 From: Veiko Aasa Date: Sat, 25 Feb 2023 20:04:07 +0200 Subject: [PATCH] samba: tests: Fix enable share view test Closes #2327. Signed-off-by: Veiko Aasa Reviewed-by: Sunil Mohan Adapa --- plinth/modules/samba/tests/test_views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plinth/modules/samba/tests/test_views.py b/plinth/modules/samba/tests/test_views.py index e7936dff6..741419ceb 100644 --- a/plinth/modules/samba/tests/test_views.py +++ b/plinth/modules/samba/tests/test_views.py @@ -74,7 +74,8 @@ def fixture_samba_urls(): def samba_patch_privileged(): """Patch privileged scripts runner.""" with patch('plinth.modules.samba.privileged.get_shares') as get_shares, \ - patch('plinth.modules.samba.privileged.delete_share'): + patch('plinth.modules.samba.privileged.delete_share'), \ + patch('plinth.modules.samba.privileged.add_share'): get_shares.return_value = SHARES yield