mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix failed unit test
This commit is contained in:
parent
10cd328dda
commit
7006a1eecf
1 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ class KeyTestCase(TestCase):
|
|||
with patch.object(salt.utils,
|
||||
'pem_finger', return_value='A'):
|
||||
with patch.dict(key.__opts__,
|
||||
{'pki_dir': MagicMock(return_value='A')}):
|
||||
{'pki_dir': MagicMock(return_value='A'), 'hash_type': 'sha256'}):
|
||||
self.assertEqual(key.finger(), 'A')
|
||||
|
||||
def test_finger_master(self):
|
||||
|
@ -48,7 +48,7 @@ class KeyTestCase(TestCase):
|
|||
with patch.object(salt.utils,
|
||||
'pem_finger', return_value='A'):
|
||||
with patch.dict(key.__opts__,
|
||||
{'pki_dir': 'A'}):
|
||||
{'pki_dir': 'A', 'hash_type': 'sha256'}):
|
||||
self.assertEqual(key.finger_master(), 'A')
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue