mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fixes testing opts dict for batch unit tests
This commit is contained in:
parent
b1de79abcf
commit
9174e6f281
1 changed files with 7 additions and 1 deletions
|
@ -24,7 +24,13 @@ class BatchTestCase(TestCase):
|
|||
'''
|
||||
|
||||
def setUp(self):
|
||||
opts = {'batch': '', 'conf_file': {}, 'tgt': '', 'transport': '', 'timeout': 5}
|
||||
opts = {'batch': '',
|
||||
'conf_file': {},
|
||||
'tgt': '',
|
||||
'transport': '',
|
||||
'timeout': 5,
|
||||
'gather_job_timeout': 5}
|
||||
|
||||
mock_client = MagicMock()
|
||||
with patch('salt.client.get_local_client', MagicMock(return_value=mock_client)):
|
||||
with patch('salt.client.LocalClient.cmd_iter', MagicMock(return_value=[])):
|
||||
|
|
Loading…
Add table
Reference in a new issue