Fixes testing opts dict for batch unit tests

This commit is contained in:
Pablo Suárez Hernández 2017-03-24 17:22:57 +00:00
parent b1de79abcf
commit 9174e6f281

View file

@ -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=[])):