mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 23:21:22 -07:00
Update test_proxmox_backup_schedule.py
This commit is contained in:
parent
2b58f5518b
commit
8c3ff95648
1 changed files with 26 additions and 24 deletions
|
@ -200,6 +200,7 @@ class TestProxmoxBackupScheduleModule(ModuleTestCase):
|
|||
assert result["msg"] == "missing required arguments: api_host, api_user, state"
|
||||
|
||||
def test_update_vmid_in_backup(self):
|
||||
with patch('builtins.input', return_value='mocked input'):
|
||||
with pytest.raises(AnsibleExitJson) as exc_info:
|
||||
set_module_args({
|
||||
'api_host': 'proxmoxhost',
|
||||
|
@ -215,6 +216,7 @@ class TestProxmoxBackupScheduleModule(ModuleTestCase):
|
|||
assert result['changed'] is True
|
||||
|
||||
def test_delete_vmid_from_backup(self):
|
||||
with patch('builtins.input', return_value='mocked input'):
|
||||
with pytest.raises(AnsibleExitJson) as exc_info:
|
||||
set_module_args({
|
||||
'api_host': 'proxmoxhost',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue