mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add transport key to mocked opts to fix batch unit tests
This commit is contained in:
parent
6563bb80e3
commit
b01196e7e8
1 changed files with 1 additions and 1 deletions
|
@ -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=[])):
|
||||
|
|
Loading…
Add table
Reference in a new issue