mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #43324 from twangboy/fix_unit.modules.test_chef
Fix `unit.modules.test_chef` for Windows
This commit is contained in:
commit
62429c547d
1 changed files with 4 additions and 2 deletions
|
@ -36,7 +36,8 @@ class ChefTestCase(TestCase, LoaderModuleMockMixin):
|
|||
'''
|
||||
Test if it execute a chef client run and return a dict
|
||||
'''
|
||||
self.assertDictEqual(chef.client(), {})
|
||||
with patch.dict(chef.__opts__, {'cachedir': r'c:\salt\var\cache\salt\minion'}):
|
||||
self.assertDictEqual(chef.client(), {})
|
||||
|
||||
# 'solo' function tests: 1
|
||||
|
||||
|
@ -44,4 +45,5 @@ class ChefTestCase(TestCase, LoaderModuleMockMixin):
|
|||
'''
|
||||
Test if it execute a chef solo run and return a dict
|
||||
'''
|
||||
self.assertDictEqual(chef.solo('/dev/sda1'), {})
|
||||
with patch.dict(chef.__opts__, {'cachedir': r'c:\salt\var\cache\salt\minion'}):
|
||||
self.assertDictEqual(chef.solo('/dev/sda1'), {})
|
||||
|
|
Loading…
Add table
Reference in a new issue