mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +00:00
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:
parent
f0842bfcca
commit
e9f9d33abc
@ -74,7 +74,8 @@ def fixture_samba_urls():
|
|||||||
def samba_patch_privileged():
|
def samba_patch_privileged():
|
||||||
"""Patch privileged scripts runner."""
|
"""Patch privileged scripts runner."""
|
||||||
with patch('plinth.modules.samba.privileged.get_shares') as get_shares, \
|
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
|
get_shares.return_value = SHARES
|
||||||
yield
|
yield
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user