From b50a534454f0432e2ada8140e0090535b7c97051 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 23 Mar 2026 14:04:49 +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_upload_to_nextcloud_join_url.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/test_upload_to_nextcloud_join_url.py b/tests/test_upload_to_nextcloud_join_url.py index d5bc1bc9..05d156f6 100644 --- a/tests/test_upload_to_nextcloud_join_url.py +++ b/tests/test_upload_to_nextcloud_join_url.py @@ -1,8 +1,11 @@ -import pytest -from unittest.mock import patch, MagicMock import os +from unittest.mock import MagicMock, patch + +import pytest + from app.tasks.upload_to_nextcloud import upload_to_nextcloud + @pytest.fixture def mock_settings(): with patch("app.tasks.upload_to_nextcloud.settings") as mock: @@ -14,6 +17,7 @@ def mock_settings(): mock.http_request_timeout = 30 yield mock + @pytest.fixture def mock_requests(): with patch("app.tasks.upload_to_nextcloud.requests") as mock: @@ -26,6 +30,7 @@ def mock_requests(): mock.put.return_value = put_response yield mock + def test_upload_to_nextcloud_url_construction(mock_settings, mock_requests): file_path = "/tmp/workdir/test_file.txt"