def METHOD_NAME():
    client = RESTAPIClient(_REMOTE)
    # Test that we raise an error if there's no refresh token in the config
    # Delete the API keys from the config (engine password) so that we don't try and
    # get an access token with those.
    config = create_config_dict()
    del config["remotes"][_REMOTE]["SG_ENGINE_USER"]
    del config["remotes"][_REMOTE]["SG_ENGINE_PWD"]
    with patch("splitgraph.cloud.create_config_dict", return_value=config), pytest.raises(
        AuthAPIError
    ) as e:
        client.access_token
    assert "No refresh token or API keys found in the config" in str(e.value)