156390b676
CI/CD Pipeline / Build Staging API Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging Web Image (pull_request) Has been skipped
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / ACR Image Cleanup (pull_request) Has been skipped
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 43s
CI/CD Pipeline / Validate - Type Check (mypy) (pull_request) Successful in 1m31s
AI Code Review / AI Code Review (pull_request) Successful in 1m31s
CI/CD Pipeline / Validate - Migration (alembic) (pull_request) Successful in 1m35s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 1m39s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 2m28s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Successful in 1m46s
CI/CD Pipeline / Validate - Code Quality (pull_request) Has been cancelled
CI/CD Pipeline / Unit Tests (pull_request) Has been cancelled
CI/CD Pipeline / Integration Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
CI/CD Pipeline / PR Build API Image (pull_request) Has been cancelled
CI/CD Pipeline / PR Build Web Image (pull_request) Has been cancelled
CI/CD Pipeline / PR Build Worker Image (pull_request) Has been cancelled
CI/CD Pipeline / Build Production API Image (pull_request) Has been cancelled
CI/CD Pipeline / Build Production Web Image (pull_request) Has been cancelled
CI/CD Pipeline / Build Production Worker Image (pull_request) Has been cancelled
CI/CD Pipeline / Deploy Production (pull_request) Has been cancelled
CI/CD Pipeline / Production Browser E2E (pull_request) Has been cancelled
CI/CD Pipeline / Canary Release to Production (pull_request) Has been cancelled
CI/CD Pipeline / CI Gate (pull_request) Has been cancelled
PR Automation / Auto Approve on CI Green (pull_request) Has been cancelled
修复项: 1. Code Quality: 修复F401未使用import + 配置tests目录忽略B011(assert-false) 2. Unit Tests(14个失败): - shared.url_security补全ALLOWED_VIDEO_MIME_TYPES re-export - video_processing.__init__导出url_security子模块 - test_classification更新AssetLibraryKind(新增IMAGE) - test_multi_track_subtitle_concat修复POSITION_ALIGNMENT导入路径 3. Frontend Unit Tests: 更新useGenerateVideo测试为实际存在的导出
22 lines
815 B
TypeScript
Executable File
22 lines
815 B
TypeScript
Executable File
/**
|
|
* useGenerateVideo Hook — smoke test
|
|
* 确保 vitest related 模式能匹配到 generate-video 目录的改动
|
|
*/
|
|
import { describe, it, expect } from "vitest"
|
|
|
|
import type {
|
|
UseGenerateVideoProps,
|
|
GenerationPhase,
|
|
} from "@/pages/generate/hooks/generate-video/types"
|
|
import { getGenerationPhase } from "@/pages/generate/hooks/generate-video/phase"
|
|
import { extractBackendError } from "@/pages/generate/hooks/generate-video/errorUtils"
|
|
import { buildVoiceConfig } from "@/pages/generate/hooks/generate-video/voiceConfig"
|
|
|
|
describe("generate-video module smoke test", () => {
|
|
it("should load all generate-video modules", () => {
|
|
expect(typeof getGenerationPhase).toBe("function")
|
|
expect(typeof extractBackendError).toBe("function")
|
|
expect(typeof buildVoiceConfig).toBe("function")
|
|
})
|
|
})
|