mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Mock the ssh.key_is_encrypted utils func
This commit is contained in:
parent
169924b3fe
commit
e2140d9a84
1 changed files with 7 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue