mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #47569 from Ch3LL/core_virt
Update salt.utils.path mock in virtual core test
This commit is contained in:
commit
8e26624db3
1 changed files with 2 additions and 2 deletions
|
@ -864,9 +864,9 @@ SwapTotal: 4789244 kB'''
|
|||
test virtual grain with cmd virt-what
|
||||
'''
|
||||
virt = 'kvm'
|
||||
with patch.object(salt.utils, 'is_windows',
|
||||
with patch.object(salt.utils.platform, 'is_windows',
|
||||
MagicMock(return_value=False)):
|
||||
with patch.object(salt.utils, 'which',
|
||||
with patch.object(salt.utils.path, 'which',
|
||||
MagicMock(return_value=True)):
|
||||
with patch.dict(core.__salt__, {'cmd.run_all':
|
||||
MagicMock(return_value={'pid': 78,
|
||||
|
|
Loading…
Add table
Reference in a new issue