mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Add cmd_mock back in to function spec
This commit is contained in:
parent
a671f0a092
commit
92f8c836e8
@ -53,7 +53,7 @@ class LocalClientTestCase(TestCase,
|
|||||||
|
|
||||||
@patch('salt.client.LocalClient.cmd', return_value={'minion1': ['first.func', 'second.func'],
|
@patch('salt.client.LocalClient.cmd', return_value={'minion1': ['first.func', 'second.func'],
|
||||||
'minion2': ['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:
|
with patch('salt.client.LocalClient.cmd_cli') as cmd_cli_mock:
|
||||||
self.client.cmd_subset('*', 'first.func', sub=1, cli=True)
|
self.client.cmd_subset('*', 'first.func', sub=1, cli=True)
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user