mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #42277 from twangboy/win_unit_states_test_winrepo
Fix `unit.states.test_winrepo` for Windows
This commit is contained in:
commit
baf04f2a2d
1 changed files with 2 additions and 3 deletions
|
@ -67,9 +67,8 @@ class WinrepoTestCase(TestCase, LoaderModuleMockMixin):
|
|||
'changes': {},
|
||||
'result': False,
|
||||
'comment': ''}
|
||||
ret.update({'comment':
|
||||
'{file_roots}/win/repo is '
|
||||
'missing'.format(file_roots=BASE_FILE_ROOTS_DIR)})
|
||||
ret.update({'comment': '{0} is missing'.format(
|
||||
os.sep.join([BASE_FILE_ROOTS_DIR, 'win', 'repo']))})
|
||||
self.assertDictEqual(winrepo.genrepo('salt'), ret)
|
||||
|
||||
mock = MagicMock(return_value={'winrepo_dir': 'salt',
|
||||
|
|
Loading…
Add table
Reference in a new issue