mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Fix one broken locale unittest
This commit is contained in:
parent
f923ba82b5
commit
2452752fa6
@ -84,7 +84,9 @@ class LocalemodTestCase(TestCase):
|
||||
self.assertFalse(localemod.set_locale('l'))
|
||||
|
||||
with patch.dict(localemod.__grains__, {'os_family': ['A']}):
|
||||
self.assertRaises(CommandExecutionError, localemod.set_locale, 'A')
|
||||
with patch.dict(localemod.__salt__, {'cmd.retcode': MagicMock(return_value=0)}):
|
||||
with patch('salt.utils.systemd.booted', return_value=False):
|
||||
self.assertRaises(CommandExecutionError, localemod.set_locale, 'A')
|
||||
|
||||
def test_avail(self):
|
||||
'''
|
||||
|
Loading…
Reference in New Issue
Block a user