style: black格式化测试文件
CI Build & Deploy Pipeline / Build Staging API Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Staging Web Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Staging Worker Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Production API Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Production Web Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Production Worker Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI Build & Deploy Pipeline / Deploy Production (pull_request) Has been skipped
CI Build & Deploy Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI Build & Deploy Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI Build & Deploy Pipeline / Production Browser E2E (pull_request) Has been skipped
Preview Deploy / Deploy Preview Environment (pull_request) Failing after 16s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 21s
AI Code Review / AI Code Review (pull_request) Failing after 37s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 49s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 39s
Auto Merge CI PRs / Auto Merge on CI Green + Approved (pull_request) Successful in 1m9s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 26s
Auto Approve CI PRs / Auto Approve on CI Green (pull_request) Successful in 1m40s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 1m33s
CI Build & Deploy Pipeline / Build Staging API Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Staging Web Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Staging Worker Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Production API Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Production Web Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Production Worker Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI Build & Deploy Pipeline / Deploy Production (pull_request) Has been skipped
CI Build & Deploy Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI Build & Deploy Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI Build & Deploy Pipeline / Production Browser E2E (pull_request) Has been skipped
Preview Deploy / Deploy Preview Environment (pull_request) Failing after 16s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 21s
AI Code Review / AI Code Review (pull_request) Failing after 37s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 49s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 39s
Auto Merge CI PRs / Auto Merge on CI Green + Approved (pull_request) Successful in 1m9s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 26s
Auto Approve CI PRs / Auto Approve on CI Green (pull_request) Successful in 1m40s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 1m33s
This commit is contained in:
@@ -636,12 +636,8 @@ class TestBuildXfadeFilter(TestCase):
|
||||
from app.services.video_compose_service import ClipFilterChain
|
||||
|
||||
chains = [
|
||||
ClipFilterChain(
|
||||
clip_id="c1", input_index=0, video_label="v0", audio_label="a0", filters=[], duration=5.0
|
||||
),
|
||||
ClipFilterChain(
|
||||
clip_id="c2", input_index=1, video_label="v1", audio_label="a1", filters=[], duration=8.0
|
||||
),
|
||||
ClipFilterChain(clip_id="c1", input_index=0, video_label="v0", audio_label="a0", filters=[], duration=5.0),
|
||||
ClipFilterChain(clip_id="c2", input_index=1, video_label="v1", audio_label="a1", filters=[], duration=8.0),
|
||||
]
|
||||
filter_str, _ = _build_xfade_filter(chains, transition_duration=0.5, transitions=["fade"])
|
||||
# 两个音频流都必须经过 aformat 归一化(48000Hz + stereo + fltp)
|
||||
@@ -655,12 +651,8 @@ class TestBuildXfadeFilter(TestCase):
|
||||
from app.services.video_compose_service import ClipFilterChain
|
||||
|
||||
chains = [
|
||||
ClipFilterChain(
|
||||
clip_id="c1", input_index=0, video_label="v0", audio_label="a0", filters=[], duration=5.0
|
||||
),
|
||||
ClipFilterChain(
|
||||
clip_id="c2", input_index=1, video_label="v1", audio_label=None, filters=[], duration=8.0
|
||||
),
|
||||
ClipFilterChain(clip_id="c1", input_index=0, video_label="v0", audio_label="a0", filters=[], duration=5.0),
|
||||
ClipFilterChain(clip_id="c2", input_index=1, video_label="v1", audio_label=None, filters=[], duration=8.0),
|
||||
]
|
||||
filter_str, _ = _build_xfade_filter(chains, transition_duration=0.5, transitions=["fade"])
|
||||
self.assertIn("[a0]acopy[outa]", filter_str)
|
||||
|
||||
Reference in New Issue
Block a user