Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unit.modules.test_win_system tests #52992

Merged
merged 1 commit into from
May 14, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/unit/modules/test_win_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,11 @@ def test_get_pending_computer_name(self):
with patch.object(win_system, 'get_computer_name',
MagicMock(return_value='salt')):
reg_mock = MagicMock(return_value={'vdata': 'salt'})
with patch.dict(win_system.__salt__, {'reg.read_value': reg_mock}):
with patch.dict(win_system.__utils__, {'reg.read_value': reg_mock}):
self.assertFalse(win_system.get_pending_computer_name())

reg_mock = MagicMock(return_value={'vdata': 'salt_pending'})
with patch.dict(win_system.__salt__, {'reg.read_value': reg_mock}):
with patch.dict(win_system.__utils__, {'reg.read_value': reg_mock}):
self.assertEqual(win_system.get_pending_computer_name(),
'salt_pending')

Expand Down