test 파일 이동

This commit is contained in:
jaehwang 2026-09-03 17:03:15 +09:00
parent 659fd53b97
commit 5c84733a8b
8 changed files with 12 additions and 11 deletions

5
.gitignore vendored
View File

@ -1,5 +1,6 @@
# 프로젝트
backend/test_*/
# 프로젝트 — 폴더를 옮겨도 따라가도록 경로 없이 잡는다
test_result/
test_image/
# 시크릿
.env
.env.*

View File

@ -1,6 +1,6 @@
"""bgm 수동 확인용. **Suno는 실제 과금이 나간다.**
사용: uv run python test_bgm.py <포스터경로>
사용: uv run python -m tests.test_bgm <포스터경로>
test_result/<이름>.narration.txt(bgm_style) <이름>.tts.txt(total) 재사용한다.
없으면 단계부터 돌린다. 결과는 <이름>.bgm.mp3 <이름>.bgm.txt.
"""
@ -12,7 +12,7 @@ from pathlib import Path
from models.tts import NarrationTimeline
from services.bgm import generate_bgm
from services.tts import synthesize
from test_tts import load_narration
from tests.test_tts import load_narration
TEST_RESULT_DIR = Path(__file__).parent / "test_result"

View File

@ -1,6 +1,6 @@
"""detect 수동 확인용.
사용: uv run python test_detect.py <포스터경로>
사용: uv run python -m tests.test_detect <포스터경로>
결과는 test_result/ 아래에 .detect.txt / .grid.jpg / .check.jpg 파일로 떨어진다.
"""
import asyncio

View File

@ -1,6 +1,6 @@
"""i2v 수동 확인용.
사용: uv run python test_i2v.py <포스터경로>
사용: uv run python -m tests.test_i2v <포스터경로>
test_result/<이름>.i2v.txt(프롬프트) <이름>.detect.txt(영역) 쓴다.
결과는 <이름>.clip.mp4 <이름>.title_gate.txt.
"""

View File

@ -1,6 +1,6 @@
"""motion 수동 확인용.
사용: uv run python test_motion.py <포스터경로> [모션키,쉼표구분]
사용: uv run python -m tests.test_motion <포스터경로> [모션키,쉼표구분]
모션키를 주면 VLM을 건너뛰고 목록으로 프롬프트를 만든다( 문자열이면 0).
결과는 test_result/<이름>.motion.txt(채택·탈락) <이름>.i2v.txt(프롬프트 원문) 떨어진다.
"""

View File

@ -1,6 +1,6 @@
"""narration 수동 확인용.
사용: uv run python test_narration.py <포스터경로>
사용: uv run python -m tests.test_narration <포스터경로>
같은 포스터의 test_result/<이름>.detect.txt 있으면 재사용하고, 없으면 detect부터 돌린다.
결과는 test_result/<이름>.narration.txt 떨어진다.
"""

View File

@ -1,6 +1,6 @@
"""render 수동 확인용.
사용: uv run python test_render.py <포스터경로> [클립경로]
사용: uv run python -m tests.test_render <포스터경로> [클립경로]
클립을 생략하면 test_result/<이름>.clip.mp4 쓴다.
나레이션(.tts.mp3)·타임라인(.tts.txt)·BGM(.bgm.mp3) 있으면 얹고 없으면 건너뛴다.
결과는 <이름>.final.mp4 <이름>.thumb.jpg.

View File

@ -1,6 +1,6 @@
"""tts 수동 확인용.
사용: uv run python test_tts.py <포스터경로>
사용: uv run python -m tests.test_tts <포스터경로>
test_result/<이름>.narration.txt 있으면 재사용하고, 없으면 단계부터 돌린다.
결과는 <이름>.tts.mp3(합쳐진 나레이션) <이름>.tts.txt(타임라인) 떨어진다.
"""
@ -11,7 +11,7 @@ from pathlib import Path
from answers.narration_answer import NarrationAnswer
from services.narration import generate_narration
from services.tts import synthesize
from test_narration import load_regions
from tests.test_narration import load_regions
TEST_RESULT_DIR = Path(__file__).parent / "test_result"