chore: 修复isort import排序
CI/CD Pipeline / Frontend Lint (push) Failing after 1h0m49s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 1h0m49s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1659h35m48s
CI/CD Pipeline / Staging API Integration Tests (push) Failing after 1659h35m50s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1659h35m50s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1659h35m52s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Failing after 1659h35m52s
CI/CD Pipeline / Deploy Production (push) Failing after 1660h7m19s
CI/CD Pipeline / Frontend Lint (push) Failing after 1h0m49s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 1h0m49s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1659h35m48s
CI/CD Pipeline / Staging API Integration Tests (push) Failing after 1659h35m50s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1659h35m50s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1659h35m52s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Failing after 1659h35m52s
CI/CD Pipeline / Deploy Production (push) Failing after 1660h7m19s
This commit is contained in:
@@ -25,15 +25,14 @@ from fastapi.testclient import TestClient
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "..", "apps", "api"))
|
||||
|
||||
# mock celery_app 以避免实际发送任务
|
||||
import app.api.routes.classification_jobs as classification_routes
|
||||
from app.api.routes.classification_jobs import router
|
||||
from app.dependencies import get_classification_job_repository
|
||||
|
||||
from packages.adapters.in_memory import InMemoryClassificationJobRepository
|
||||
from packages.domain import ClassificationJob, ClassificationJobStatus
|
||||
|
||||
# mock celery_app 以避免实际发送任务
|
||||
import app.api.routes.classification_jobs as classification_routes
|
||||
|
||||
classification_routes.celery_app = MagicMock()
|
||||
|
||||
|
||||
|
||||
@@ -25,15 +25,14 @@ from fastapi.testclient import TestClient
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "..", "apps", "api"))
|
||||
|
||||
# mock celery_app 以避免实际发送任务
|
||||
import app.api.routes.ingest_jobs as ingest_routes
|
||||
from app.api.routes.ingest_jobs import router
|
||||
from app.dependencies import get_ingest_job_repository
|
||||
|
||||
from packages.adapters.in_memory import InMemoryIngestJobRepository
|
||||
from packages.domain import IngestJob, IngestJobStatus
|
||||
|
||||
# mock celery_app 以避免实际发送任务
|
||||
import app.api.routes.ingest_jobs as ingest_routes
|
||||
|
||||
ingest_routes.celery_app = MagicMock()
|
||||
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ from fastapi.testclient import TestClient
|
||||
|
||||
sys.path.insert(0, str(Path(__file__).resolve().parents[2] / "apps" / "api"))
|
||||
|
||||
from app.api.routes.subscription import router, _get_plan_name, _get_plan_price
|
||||
from app.api.routes.subscription import _get_plan_name, _get_plan_price, router
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# 1. Mock Billing Repository
|
||||
|
||||
Reference in New Issue
Block a user