style: auto-format with black + isort + prettier [skip ci-format-check]
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (push) Successful in 4s
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (pull_request) Successful in 4s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 5s
CI/CD Pipeline / Check push changed paths (push) Successful in 9s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 26s
CI/CD Pipeline / PR Build Web Image (pull_request) Successful in 27s
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 34s
CI/CD Pipeline / Build Staging Web Image (push) Successful in 34s
CI/CD Pipeline / Build Staging API Image (push) Successful in 35s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 1m53s
CI/CD Pipeline / CI Gate (pull_request) Successful in 7s
AI Code Review / AI Code Review (pull_request) Failing after 1m59s
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Validate - Python (mypy + alembic) (push) Successful in 2m5s
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 30s
CI/CD Pipeline / Integration Tests (push) Successful in 2m24s
CI/CD Pipeline / Validate - Style (push) Successful in 2m47s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Successful in 53s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 3m22s
CI/CD Pipeline / ACR Image Cleanup (push) Successful in 1m43s
CI/CD Pipeline / Frontend Unit Tests (push) Failing after 5m16s
CI/CD Pipeline / Staging API Integration Tests (push) Successful in 3m2s
CI/CD Pipeline / Validate - Security (push) Successful in 6m51s
CI/CD Pipeline / Unit Tests (push) Failing after 7m56s
CI/CD Pipeline / Production Browser E2E (push) Has been skipped
CI/CD Pipeline / Staging E2E Tests (push) Successful in 5m3s
CI/CD Pipeline / Canary Release to Production (push) Failing after 287h2m15s
CI/CD Pipeline / CI Gate (push) Failing after 287h2m18s
CI/CD Pipeline / Build Production Worker Image (push) Failing after 287h2m18s
CI/CD Pipeline / Build Production API Image (push) Failing after 287h2m19s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Failing after 287h6m54s
CI/CD Pipeline / Retag skipped Staging Worker Image (push) Failing after 287h7m56s
CI/CD Pipeline / Retag skipped Staging API Image (push) Failing after 287h7m56s
CI/CD Pipeline / Canary Release to Production (pull_request) Failing after 287h8m1s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 287h8m8s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 287h8m8s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 287h8m17s
CI/CD Pipeline / Build Production Worker Image (pull_request) Failing after 287h8m26s
CI/CD Pipeline / Build Production Web Image (pull_request) Failing after 287h8m27s
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Failing after 287h9m5s
CI/CD Pipeline / Retag skipped Staging Web Image (pull_request) Failing after 287h9m6s
CI/CD Pipeline / Retag skipped Staging API Image (pull_request) Failing after 287h9m6s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 287h10m8s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 287h10m9s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 287h10m9s
CI/CD Pipeline / Validate - Python (mypy + alembic) (pull_request) Failing after 287h10m10s
CI/CD Pipeline / Frontend Lint (push) Failing after 287h10m15s
CI/CD Pipeline / Validate - Security (pull_request) Failing after 287h10m11s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 287h10m18s
CI/CD Pipeline / Validate - Style (pull_request) Failing after 287h10m12s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 287h10m18s
CI/CD Pipeline / PR Build Worker Image (push) Failing after 287h10m19s
CI/CD Pipeline / PR Build API Image (push) Failing after 287h10m19s
CI/CD Pipeline / Check push changed paths (pull_request) Failing after 287h10m21s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 287h10m21s
CI/CD Pipeline / Deploy Production (push) Failing after 287h36m42s
CI/CD Pipeline / Build Production Web Image (push) Failing after 287h36m45s
CI/CD Pipeline / Retag skipped Staging Web Image (push) Failing after 287h42m23s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 287h42m35s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 287h42m41s
CI/CD Pipeline / Build Production API Image (pull_request) Failing after 287h42m55s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 287h44m35s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 287h44m45s
CI/CD Pipeline / PR Build Web Image (push) Failing after 287h44m46s
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (push) Successful in 4s
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (pull_request) Successful in 4s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 5s
CI/CD Pipeline / Check push changed paths (push) Successful in 9s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 26s
CI/CD Pipeline / PR Build Web Image (pull_request) Successful in 27s
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 34s
CI/CD Pipeline / Build Staging Web Image (push) Successful in 34s
CI/CD Pipeline / Build Staging API Image (push) Successful in 35s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 1m53s
CI/CD Pipeline / CI Gate (pull_request) Successful in 7s
AI Code Review / AI Code Review (pull_request) Failing after 1m59s
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Validate - Python (mypy + alembic) (push) Successful in 2m5s
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 30s
CI/CD Pipeline / Integration Tests (push) Successful in 2m24s
CI/CD Pipeline / Validate - Style (push) Successful in 2m47s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Successful in 53s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 3m22s
CI/CD Pipeline / ACR Image Cleanup (push) Successful in 1m43s
CI/CD Pipeline / Frontend Unit Tests (push) Failing after 5m16s
CI/CD Pipeline / Staging API Integration Tests (push) Successful in 3m2s
CI/CD Pipeline / Validate - Security (push) Successful in 6m51s
CI/CD Pipeline / Unit Tests (push) Failing after 7m56s
CI/CD Pipeline / Production Browser E2E (push) Has been skipped
CI/CD Pipeline / Staging E2E Tests (push) Successful in 5m3s
CI/CD Pipeline / Canary Release to Production (push) Failing after 287h2m15s
CI/CD Pipeline / CI Gate (push) Failing after 287h2m18s
CI/CD Pipeline / Build Production Worker Image (push) Failing after 287h2m18s
CI/CD Pipeline / Build Production API Image (push) Failing after 287h2m19s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Failing after 287h6m54s
CI/CD Pipeline / Retag skipped Staging Worker Image (push) Failing after 287h7m56s
CI/CD Pipeline / Retag skipped Staging API Image (push) Failing after 287h7m56s
CI/CD Pipeline / Canary Release to Production (pull_request) Failing after 287h8m1s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 287h8m8s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 287h8m8s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 287h8m17s
CI/CD Pipeline / Build Production Worker Image (pull_request) Failing after 287h8m26s
CI/CD Pipeline / Build Production Web Image (pull_request) Failing after 287h8m27s
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Failing after 287h9m5s
CI/CD Pipeline / Retag skipped Staging Web Image (pull_request) Failing after 287h9m6s
CI/CD Pipeline / Retag skipped Staging API Image (pull_request) Failing after 287h9m6s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 287h10m8s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 287h10m9s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 287h10m9s
CI/CD Pipeline / Validate - Python (mypy + alembic) (pull_request) Failing after 287h10m10s
CI/CD Pipeline / Frontend Lint (push) Failing after 287h10m15s
CI/CD Pipeline / Validate - Security (pull_request) Failing after 287h10m11s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 287h10m18s
CI/CD Pipeline / Validate - Style (pull_request) Failing after 287h10m12s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 287h10m18s
CI/CD Pipeline / PR Build Worker Image (push) Failing after 287h10m19s
CI/CD Pipeline / PR Build API Image (push) Failing after 287h10m19s
CI/CD Pipeline / Check push changed paths (pull_request) Failing after 287h10m21s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 287h10m21s
CI/CD Pipeline / Deploy Production (push) Failing after 287h36m42s
CI/CD Pipeline / Build Production Web Image (push) Failing after 287h36m45s
CI/CD Pipeline / Retag skipped Staging Web Image (push) Failing after 287h42m23s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 287h42m35s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 287h42m41s
CI/CD Pipeline / Build Production API Image (pull_request) Failing after 287h42m55s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 287h44m35s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 287h44m45s
CI/CD Pipeline / PR Build Web Image (push) Failing after 287h44m46s
This commit is contained in:
@@ -9,8 +9,7 @@ from pathlib import Path
|
||||
from unittest.mock import MagicMock, patch
|
||||
|
||||
import pytest
|
||||
|
||||
from video_processing.unified_render_service import ResolvedClip, RenderLayer, UnifiedRenderService
|
||||
from video_processing.unified_render_service import RenderLayer, ResolvedClip, UnifiedRenderService
|
||||
|
||||
|
||||
class TestAlignClipsToVoiceDuration:
|
||||
@@ -44,7 +43,7 @@ class TestAlignClipsToVoiceDuration:
|
||||
plan = MagicMock()
|
||||
plan.id = "test_plan"
|
||||
plan.config = {}
|
||||
|
||||
|
||||
with patch.object(UnifiedRenderService, "__init__", lambda self, **kwargs: None):
|
||||
service = UnifiedRenderService.__new__(UnifiedRenderService)
|
||||
service.plan = plan
|
||||
@@ -116,10 +115,10 @@ class TestAlignClipsToVoiceDuration:
|
||||
def test_only_video_layers_adjusted(self):
|
||||
"""Only main/broll/background layers are adjusted, not audio."""
|
||||
service = self._make_service()
|
||||
|
||||
|
||||
video_clips = [self._make_clip("v1", 10.0)]
|
||||
audio_clips = [self._make_clip("a1", 10.0)]
|
||||
|
||||
|
||||
layers = [
|
||||
self._make_layer("main", video_clips),
|
||||
self._make_layer("audio", audio_clips),
|
||||
@@ -134,11 +133,11 @@ class TestAlignClipsToVoiceDuration:
|
||||
def test_multiple_video_layers_all_adjusted(self):
|
||||
"""All video layers (main, broll, background) are adjusted."""
|
||||
service = self._make_service()
|
||||
|
||||
|
||||
main_clips = [self._make_clip("m1", 10.0)]
|
||||
broll_clips = [self._make_clip("b1", 10.0)]
|
||||
bg_clips = [self._make_clip("bg1", 10.0)]
|
||||
|
||||
|
||||
layers = [
|
||||
self._make_layer("main", main_clips),
|
||||
self._make_layer("broll", broll_clips),
|
||||
@@ -156,12 +155,12 @@ class TestAlignClipsToVoiceDuration:
|
||||
def test_trim_config_also_adjusted(self):
|
||||
"""When clip has trim_config, it should also be adjusted."""
|
||||
from video_processing.trim_engine import TrimConfig
|
||||
|
||||
|
||||
service = self._make_service()
|
||||
|
||||
|
||||
clip = self._make_clip("c1", 10.0)
|
||||
clip.trim_config = TrimConfig(start_time=0.0, duration=10.0)
|
||||
|
||||
|
||||
layers = [self._make_layer("main", [clip])]
|
||||
|
||||
# ratio = 0.5
|
||||
|
||||
Reference in New Issue
Block a user