mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Mock the ssh.key_is_encrypted utils func
This commit is contained in:
parent
169924b3fe
commit
e2140d9a84
@ -78,7 +78,13 @@ class GitTestCase(TestCase, LoaderModuleMockMixin):
|
||||
Test cases for salt.modules.git
|
||||
'''
|
||||
def setup_loader_modules(self):
|
||||
return {git_mod: {}}
|
||||
return {
|
||||
git_mod: {
|
||||
'__utils__': {
|
||||
'ssh.key_is_encrypted': Mock(return_value=False)
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
def test_list_worktrees(self):
|
||||
'''
|
||||
|
Loading…
Reference in New Issue
Block a user