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:
@@ -139,7 +139,6 @@ class TestTestTokenOuterException:
|
|||||||
|
|
||||||
def test_test_token_outer_exception(self, client: TestClient):
|
def test_test_token_outer_exception(self, client: TestClient):
|
||||||
"""Trigger the outermost exception handler in test_google_drive_token."""
|
"""Trigger the outermost exception handler in test_google_drive_token."""
|
||||||
from app.config import settings
|
|
||||||
|
|
||||||
# Patch getattr on settings to raise on the first call within the try block
|
# Patch getattr on settings to raise on the first call within the try block
|
||||||
with patch("app.api.google_drive.getattr", side_effect=Exception("unexpected error")):
|
with patch("app.api.google_drive.getattr", side_effect=Exception("unexpected error")):
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ Focuses on uncovered lines: 98-99, 121-143, 160-161, 170-171,
|
|||||||
324-326, 400-402, 436-438.
|
324-326, 400-402, 436-438.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
|
||||||
from unittest.mock import MagicMock, patch
|
from unittest.mock import MagicMock, patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|||||||
Reference in New Issue
Block a user