mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix unit.modules.test_gem
for Windows
Mock `salt.utils.is_windows` to return False so the test will run on Windows
This commit is contained in:
parent
9b27473763
commit
b2cea18d13
1 changed files with 2 additions and 1 deletions
|
@ -65,7 +65,8 @@ class TestGemModule(TestCase, LoaderModuleMockMixin):
|
|||
with patch.dict(gem.__salt__,
|
||||
{'rvm.is_installed': MagicMock(return_value=False),
|
||||
'rbenv.is_installed': MagicMock(return_value=True),
|
||||
'rbenv.do': mock}):
|
||||
'rbenv.do': mock}),\
|
||||
patch('salt.utils.is_windows', return_value=False):
|
||||
gem._gem(['install', 'rails'])
|
||||
mock.assert_called_once_with(
|
||||
['gem', 'install', 'rails'],
|
||||
|
|
Loading…
Add table
Reference in a new issue