def METHOD_NAME(monkeypatch):
    """Test function get_keyring_credentials."""
    keyring = MockKeyring()
    for key, value in CREDENTIALS.items():
        keyring.set_password("ESGF", key, value)
    monkeypatch.setattr(_esgf_pyclient, 'keyring', keyring)
    credentials = _esgf_pyclient.get_keyring_credentials()
    assert credentials == CREDENTIALS