Add transport key to mocked opts to fix batch unit tests

This commit is contained in:
rallytime 2015-02-25 13:51:25 -07:00 committed by C. R. Oldham
parent 6563bb80e3
commit b01196e7e8

View file

@ -21,7 +21,7 @@ class BatchTestCase(TestCase):
'''
def setUp(self):
opts = {'batch': '', 'conf_file': {}, 'tgt': '', 'timeout': ''}
opts = {'batch': '', 'conf_file': {}, 'tgt': '', 'transport': ''}
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=[])):