samba: tests: Fix enable share view test

Closes #2327.

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Veiko Aasa 2023-02-25 20:04:07 +02:00 committed by Sunil Mohan Adapa
parent f0842bfcca
commit e9f9d33abc
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -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