mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
tests:backuprestore: let hooks gracefully fake exec except 'restore'
This commit is contained in:
parent
878944c7c1
commit
5563fd8ca0
1 changed files with 2 additions and 0 deletions
|
@ -455,6 +455,8 @@ def test_restore_app_script_failure_handling(monkeypatch, mocker):
|
|||
if os.path.basename(name).startswith("restore"):
|
||||
monkeypatch.undo()
|
||||
return (1, None)
|
||||
else:
|
||||
return (0, {})
|
||||
|
||||
monkeypatch.setattr("yunohost.hook.hook_exec", custom_hook_exec)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue