mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Update localemod_test systemd.sd_booted mock to use salt.utils.systemd.booted
This brings these tests inline with the changes made to salt.utils.systemd.booted in #35510
This commit is contained in:
parent
e61b04a707
commit
2930df924e
1 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ class LocalemodTestCase(TestCase):
|
|||
'''
|
||||
Test for Get the current system locale
|
||||
'''
|
||||
with patch.dict(localemod.__context__, {'systemd.sd_booted': True}):
|
||||
with patch.dict(localemod.__context__, {'salt.utils.systemd.booted': True}):
|
||||
localemod.HAS_DBUS = True
|
||||
with patch.object(localemod,
|
||||
'_parse_dbus_locale',
|
||||
|
@ -74,7 +74,7 @@ class LocalemodTestCase(TestCase):
|
|||
'''
|
||||
Test for Sets the current system locale
|
||||
'''
|
||||
with patch.dict(localemod.__context__, {'systemd.sd_booted': True}):
|
||||
with patch.dict(localemod.__context__, {'salt.utils.systemd.booted': True}):
|
||||
with patch.object(localemod, '_localectl_set', return_value=True):
|
||||
self.assertTrue(localemod.set_locale('l'))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue