mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add cmd_mock back in to function spec
This commit is contained in:
parent
a671f0a092
commit
92f8c836e8
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ class LocalClientTestCase(TestCase,
|
|||
|
||||
@patch('salt.client.LocalClient.cmd', return_value={'minion1': ['first.func', 'second.func'],
|
||||
'minion2': ['first.func', 'second.func']})
|
||||
def test_cmd_subset(self):
|
||||
def test_cmd_subset(self, cmd_mock):
|
||||
with patch('salt.client.LocalClient.cmd_cli') as cmd_cli_mock:
|
||||
self.client.cmd_subset('*', 'first.func', sub=1, cli=True)
|
||||
try:
|
||||
|
|
Loading…
Add table
Reference in a new issue