fix: resolve 48 lint errors in test files

- Remove whitespace from 22 blank lines (W293)
- Remove 6 unused imports (F401): os, Mock, MagicMock, Path
- Add missing imports for 12 test functions (F821): sanitize_filename, extract_remote_path, MagicMock
- Fix 1 unsorted import block (I001)

All ruff checks now pass successfully.

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-15 10:24:48 +00:00
parent bbb596dbd1
commit e24f83fdd0
11 changed files with 61 additions and 48 deletions
+1 -2
View File
@@ -1,6 +1,5 @@
"""Tests for app/views/license_routes.py module."""
from pathlib import Path
from unittest.mock import mock_open, patch
import pytest
@@ -19,7 +18,7 @@ class TestLicenseViews:
"""Test successful LGPL license retrieval."""
# Create a mock license file
license_content = "GNU Lesser General Public License\nVersion 3, 29 June 2007"
with patch("pathlib.Path.exists", return_value=True):
with patch("builtins.open", mock_open(read_data=license_content)):
response = client.get("/licenses/lgpl.txt")