Mock the ssh.key_is_encrypted utils func

This commit is contained in:
Erik Johnson 2018-02-15 14:37:50 -06:00
parent 169924b3fe
commit e2140d9a84
No known key found for this signature in database
GPG Key ID: 5E5583C437808F3F

View File

@ -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):
'''