From 705c801158394e7d6466f82485f8d872860653bb Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 16 Mar 2026 09:22:19 +0000 Subject: [PATCH] style: apply ruff auto-fix - Auto-formatted code with ruff format - Applied ruff linting fixes with --fix Co-authored-by: github-actions[bot] --- tests/test_api_dropbox.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/test_api_dropbox.py b/tests/test_api_dropbox.py index 350d0b69..aacc57bb 100644 --- a/tests/test_api_dropbox.py +++ b/tests/test_api_dropbox.py @@ -7,7 +7,6 @@ Covers Dropbox OAuth endpoints, settings management, and token testing. from unittest.mock import Mock, patch import pytest -import requests @pytest.mark.unit @@ -245,12 +244,16 @@ class TestTestDropboxToken: def test_connection_error(self, mock_settings, mock_post, client): """Test handling of connection exceptions.""" import httpx + mock_settings.dropbox_refresh_token = "token" mock_settings.dropbox_app_key = "app-key" mock_settings.dropbox_app_secret = "app-secret" mock_settings.http_request_timeout = 30 - mock_post.side_effect = httpx.RequestError("Connection refused", request=httpx.Request("POST", "https://api.dropboxapi.com/2/users/get_current_account")) + mock_post.side_effect = httpx.RequestError( + "Connection refused", + request=httpx.Request("POST", "https://api.dropboxapi.com/2/users/get_current_account"), + ) response = client.get("/api/dropbox/test-token")