style: Fix whitespace and formatting in onboarding tests

This commit is contained in:
Paul Gauthier (aider) 2025-03-31 08:50:59 +13:00
parent 8a90af6779
commit 6c9906c639

View file

@ -478,7 +478,10 @@ class TestOnboarding(unittest.TestCase):
# and verify subsequent steps (exchange_code_for_key, saving key) are called.
# We need to set auth_code within the function, so let's patch it directly
with patch("aider.onboarding.start_openrouter_oauth_flow.__globals__", {"auth_code": "mock_auth_code"}):
with patch(
"aider.onboarding.start_openrouter_oauth_flow.__globals__",
{"auth_code": "mock_auth_code"},
):
mock_event_cls.side_effect = [mock_server_started_event, mock_shutdown_event]
# Mock the server thread itself