From 6725789c806c54e8da4442bedf56a94d182d92de Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 17 Mar 2026 12:36:42 +0000 Subject: [PATCH] style: auto-fix ruff lint and format --- ...test_google_auth_callback_refresh_token.py | 24 ++++++++++++++----- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/tests/auth/test_google_auth_callback_refresh_token.py b/tests/auth/test_google_auth_callback_refresh_token.py index 298e810..6734942 100644 --- a/tests/auth/test_google_auth_callback_refresh_token.py +++ b/tests/auth/test_google_auth_callback_refresh_token.py @@ -61,13 +61,19 @@ def test_callback_preserves_refresh_token_from_credential_store(monkeypatch): "auth.google_auth.create_oauth_flow", lambda **kwargs: _DummyFlow(callback_credentials), # noqa: ARG005 ) - monkeypatch.setattr("auth.google_auth.get_oauth21_session_store", lambda: oauth_store) - monkeypatch.setattr("auth.google_auth.get_credential_store", lambda: credential_store) + monkeypatch.setattr( + "auth.google_auth.get_oauth21_session_store", lambda: oauth_store + ) + monkeypatch.setattr( + "auth.google_auth.get_credential_store", lambda: credential_store + ) monkeypatch.setattr( "auth.google_auth.get_user_info", lambda credentials: {"email": "user@gmail.com"}, # noqa: ARG005 ) - monkeypatch.setattr("auth.google_auth.save_credentials_to_session", lambda *args: None) + monkeypatch.setattr( + "auth.google_auth.save_credentials_to_session", lambda *args: None + ) monkeypatch.setattr("auth.google_auth.is_stateless_mode", lambda: False) _email, credentials = handle_auth_callback( @@ -95,13 +101,19 @@ def test_callback_prefers_session_refresh_token_over_credential_store(monkeypatc "auth.google_auth.create_oauth_flow", lambda **kwargs: _DummyFlow(callback_credentials), # noqa: ARG005 ) - monkeypatch.setattr("auth.google_auth.get_oauth21_session_store", lambda: oauth_store) - monkeypatch.setattr("auth.google_auth.get_credential_store", lambda: credential_store) + monkeypatch.setattr( + "auth.google_auth.get_oauth21_session_store", lambda: oauth_store + ) + monkeypatch.setattr( + "auth.google_auth.get_credential_store", lambda: credential_store + ) monkeypatch.setattr( "auth.google_auth.get_user_info", lambda credentials: {"email": "user@gmail.com"}, # noqa: ARG005 ) - monkeypatch.setattr("auth.google_auth.save_credentials_to_session", lambda *args: None) + monkeypatch.setattr( + "auth.google_auth.save_credentials_to_session", lambda *args: None + ) monkeypatch.setattr("auth.google_auth.is_stateless_mode", lambda: False) _email, credentials = handle_auth_callback(