mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #43785 from twangboy/win_fix_test_znc
Fix `unit.modules.test_znc` for Windows
This commit is contained in:
commit
05c78ae649
1 changed files with 4 additions and 2 deletions
|
@ -54,7 +54,8 @@ class ZncTestCase(TestCase, LoaderModuleMockMixin):
|
|||
Tests write the active configuration state to config file
|
||||
'''
|
||||
mock = MagicMock(return_value='SALT')
|
||||
with patch.dict(znc.__salt__, {'ps.pkill': mock}):
|
||||
with patch.dict(znc.__salt__, {'ps.pkill': mock}), \
|
||||
patch.object(znc, 'signal', MagicMock()):
|
||||
self.assertEqual(znc.dumpconf(), 'SALT')
|
||||
|
||||
# 'rehashconf' function tests: 1
|
||||
|
@ -64,7 +65,8 @@ class ZncTestCase(TestCase, LoaderModuleMockMixin):
|
|||
Tests rehash the active configuration state from config file
|
||||
'''
|
||||
mock = MagicMock(return_value='SALT')
|
||||
with patch.dict(znc.__salt__, {'ps.pkill': mock}):
|
||||
with patch.dict(znc.__salt__, {'ps.pkill': mock}), \
|
||||
patch.object(znc, 'signal', MagicMock()):
|
||||
self.assertEqual(znc.rehashconf(), 'SALT')
|
||||
|
||||
# 'version' function tests: 1
|
||||
|
|
Loading…
Add table
Reference in a new issue