style: fix code formatting with black, isort, and flake8

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-12 03:21:41 +00:00
parent f79bd2cb0c
commit ff9a3ff49f
87 changed files with 874 additions and 729 deletions
+4 -2
View File
@@ -101,9 +101,10 @@ def test_rate_limit_exceeded_returns_429(client):
@pytest.mark.security
def test_rate_limiting_uses_correct_identifier():
"""Test that rate limiting uses IP or user ID as identifier."""
from app.middleware.rate_limit import get_identifier
from fastapi import Request
from app.middleware.rate_limit import get_identifier
# Create a mock request
class MockRequest:
def __init__(self):
@@ -157,9 +158,10 @@ def test_limiter_disabled():
@pytest.mark.integration
def test_rate_limit_exception_handler_registered():
"""Test that rate limit exception handler is registered."""
from app.main import app
from slowapi.errors import RateLimitExceeded
from app.main import app
# Verify exception handler is registered
assert RateLimitExceeded in app.exception_handlers