Files
beige/backend/test_3sets_e2e.py
yangqianqian 6a2632da70 baseline: Clover 独立仓库首次基线提交
将 Clover 从上层产品包旧仓库中独立出来,建立专属版本控制。
当前状态=纵切片端到端已打通(登录→选品→出文出图→审核→下载包),
M1文案质量去套路化已验收。此提交作为后续按核销清单逐条修复的基线。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-16 11:30:22 +08:00

27 lines
1.0 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""Task#6 端到端真跑3套正交配图。建真实task(product_id=1倍分子素颜霜)。
image_count=2 → 每套2张(hook+product_closeup特写) ×3套 = 6张。
验:①strategy=A/B/C各2张 ②尺寸1024×1536 ③品牌词进特写图 ④三套图真不同。"""
import sys
sys.path.insert(0, "/app")
from app.core.database import SessionLocal
from app.models.task import GenerationTask
from app.constants.enums import TaskStatus
db = SessionLocal()
t = GenerationTask(
workspace_id=3, product_id=1, operator_id=3,
theme="伪素颜·黄黑皮提亮·3套正交",
text_count=1, image_count=2, track="ai",
need_product_image=True, status=TaskStatus.PENDING,
)
db.add(t); db.commit(); db.refresh(t)
task_id = t.id
print(f"建task成功 task_id={task_id} image_count=2 (期望3套×2=6张)")
db.close()
from app.workers.tasks import run_generation_pipeline
print(f"=== 同步执行 run_generation_pipeline({task_id}) ===")
result = run_generation_pipeline.apply(args=[task_id]).get()
print(f"=== 结果: {result} ===")