You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 6, 2026. It is now read-only.
google-auth> ________________________ test_from_dict_bad_private_key ________________________
google-auth>
google-auth> def test_from_dict_bad_private_key():
google-auth> info = SERVICE_ACCOUNT_INFO.copy()
google-auth> info["private_key"] = "garbage"
google-auth>
google-auth> with pytest.raises(ValueError) as excinfo:
google-auth> _service_account_info.from_dict(info)
google-auth>
google-auth> > assert excinfo.match(r"key")
google-auth> E AssertionError: Regex pattern did not match.
google-auth> E Regex: 'key'
google-auth> E Input: 'Unable to load PEM file. See https://cryptography.io/en/latest/faq/#why-can-t-i-import-my-pem-file for more details. MalformedFraming'
google-auth>
google-auth> tests/test__service_account_info.py:56: AssertionError