test: fix celery mock path for generation retry tests
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 1m45s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1609h20m1s
CI/CD Pipeline / Build Production Runtime Images (pull_request) Failing after 1609h20m5s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Failing after 1609h20m5s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1609h20m3s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1609h20m3s
CI/CD Pipeline / Frontend Lint (pull_request) Has been skipped
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1609h51m37s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 1m45s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1609h20m1s
CI/CD Pipeline / Build Production Runtime Images (pull_request) Failing after 1609h20m5s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Failing after 1609h20m5s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1609h20m3s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1609h20m3s
CI/CD Pipeline / Frontend Lint (pull_request) Has been skipped
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1609h51m37s
This commit is contained in:
@@ -428,7 +428,7 @@ class TestRetryProjectTask:
|
||||
assert resp.status_code == 400
|
||||
assert "Unsupported" in resp.json()["detail"]
|
||||
|
||||
@patch("app.api.routes.task_center.celery_app")
|
||||
@patch("app.core.task_enqueue.celery_app")
|
||||
def test_retry_failed_generation_task(self, mock_celery, client):
|
||||
"""重试失败的 generation 任务成功。"""
|
||||
mock_celery.send_task = MagicMock()
|
||||
@@ -581,7 +581,7 @@ class TestRetryProjectTask:
|
||||
class TestTaskCenterCrossEndpoint:
|
||||
"""任务中心跨端点集成测试。"""
|
||||
|
||||
@patch("app.api.routes.task_center.celery_app")
|
||||
@patch("app.core.task_enqueue.celery_app")
|
||||
def test_list_then_retry_then_list(self, mock_celery, client):
|
||||
"""列出任务 → 重试失败任务 → 再列出验证新任务。"""
|
||||
mock_celery.send_task = MagicMock()
|
||||
|
||||
Reference in New Issue
Block a user