style: apply ruff auto-fix

- Auto-formatted code with ruff format
- Applied ruff linting fixes with --fix

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2026-03-23 16:25:37 +00:00
parent e330a611d0
commit 326adb1858
2 changed files with 2 additions and 4 deletions
-2
View File
@@ -181,5 +181,3 @@ class TestFilesAdvancedFiltering:
assert response.status_code == 200
data = response.json()
assert len(data["files"]) == 1
+2 -2
View File
@@ -202,10 +202,10 @@ class TestSavedSearchesCRUD:
assert data["filters"]["text_quality"] == "high"
assert data["filters"]["tags"] == "invoice"
def test_create_saved_search_max_limit(self, client: TestClient, db_session, mocker):
"""POST /api/saved-searches returns 409 when max limit is reached."""
from app.api.saved_searches import MAX_SAVED_SEARCHES_PER_USER
user_id = "test_user"
mocker.patch("app.api.saved_searches._get_user_id", return_value=user_id)
@@ -327,7 +327,7 @@ class TestSavedSearchesCRUD:
# We need a mock request
class MockRequest:
session = {}
state = type('obj', (object,), {'user': None})
state = type("obj", (object,), {"user": None})
req = MockRequest()
assert _get_user_id(req) == "anonymous"