Update test_mac_keychain.py

Need to mock cmd again for the second call.
This commit is contained in:
Gareth J. Greenaway 2023-11-17 16:56:48 -08:00 committed by Daniel Wozniak
parent 9eadba3e10
commit c23df2a2d5

View file

@ -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 "