def METHOD_NAME(oauth_provider_var_mock, monkeypatch):
    monkeypatch.setattr(oauth2, "_get_provider_secrets", lambda x: {})
    with pytest.raises(KeyError):
        oauth2.get_oauth_client("missing")