ci: align backend lint checks
This commit is contained in:
@@ -13,7 +13,6 @@ Postgres / MinIO / OpenSearch / Qdrant / Redis. Verifies:
|
||||
from __future__ import annotations
|
||||
|
||||
import pytest
|
||||
|
||||
from fastapi.testclient import TestClient
|
||||
|
||||
from app.api.schemas import ComponentHealth
|
||||
|
||||
@@ -5,10 +5,8 @@ from __future__ import annotations
|
||||
import importlib
|
||||
|
||||
import pytest
|
||||
|
||||
from fastapi.testclient import TestClient
|
||||
|
||||
|
||||
KEY = "test-secret-key-DO-NOT-USE-IN-PROD"
|
||||
|
||||
|
||||
@@ -82,9 +80,9 @@ def test_protected_route_rejects_missing_key(secured_app, monkeypatch):
|
||||
|
||||
|
||||
def test_protected_route_accepts_x_api_key_header(secured_app, monkeypatch):
|
||||
from app.api.schemas import SearchResponse
|
||||
from app.config import settings
|
||||
from app.indexing import hybrid_search
|
||||
from app.api.schemas import SearchResponse
|
||||
|
||||
monkeypatch.setattr(
|
||||
hybrid_search,
|
||||
@@ -114,9 +112,9 @@ def test_protected_route_accepts_x_api_key_header(secured_app, monkeypatch):
|
||||
|
||||
|
||||
def test_protected_route_accepts_bearer_token(secured_app, monkeypatch):
|
||||
from app.api.schemas import SearchResponse
|
||||
from app.config import settings
|
||||
from app.indexing import hybrid_search
|
||||
from app.api.schemas import SearchResponse
|
||||
|
||||
monkeypatch.setattr(
|
||||
hybrid_search,
|
||||
|
||||
@@ -10,7 +10,6 @@ from __future__ import annotations
|
||||
import uuid
|
||||
|
||||
import pytest
|
||||
|
||||
from fastapi.testclient import TestClient
|
||||
|
||||
from app.api.schemas import (
|
||||
|
||||
Reference in New Issue
Block a user