mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Update test_mac_keychain.py
Need to mock cmd again for the second call.
This commit is contained in:
parent
9eadba3e10
commit
c23df2a2d5
1 changed files with 1 additions and 0 deletions
|
@ -88,6 +88,7 @@ def test_get_friendly_name():
|
|||
|
||||
assert out == expected
|
||||
|
||||
with patch.dict(keychain.__salt__, {"cmd.run": mock}):
|
||||
out = keychain.get_friendly_name("/path/to/cert.p12", "passw0rd", legacy=False)
|
||||
mock.assert_called_once_with(
|
||||
"openssl pkcs12 -in /path/to/cert.p12 -passin pass:passw0rd -info "
|
||||
|
|
Loading…
Add table
Reference in a new issue