pytest tests/ --cov=. -s
# or
pytest tests/ --cov=. --cov-report=term-missing -s
ํตํฉ ํ
์คํธ (FastAPI Endpoint) (v0.6.0)
- test_integration_speech2text.py
set RUN_INTEGRATION=true && pytest tests/test_integration_speech2text.py -s --cov=app --cov-report=term-missing
- test_integration_translate.py
set RUN_INTEGRATION=true && pytest tests/test_integration_translate.py -s --cov=app --cov-report=term-missing
- Speech2Text
Todo
1. download_video ์คํจ
- ํด๋ผ์ด์ธํธ
- ์๋ชป๋ ํ์์ URL, ์กด์ฌํ์ง ์๋ URL
- ์ญ์ ๋ ์์, ๋น๊ณต๊ฐ ์์
- ์๋ฒ
- ๋คํธ์ํฌ ๋ฌธ์
- ๋์คํฌ ์ฉ๋ ๋ถ์กฑ
- yt_dlp, ffmpeg
2. rename_video ์คํจ
- ํด๋ผ์ด์ธํธ
- None
- ์๋ฒ
- None
3. transcribe ์คํจ
- ํด๋ผ์ด์ธํธ
- None
- ์๋ฒ
- None
4. delete_video ์คํจ
- ํด๋ผ์ด์ธํธ
- None
- ์๋ฒ
- None
5. delete_file ์คํจ
- ํด๋ผ์ด์ธํธ
- None
- ์๋ฒ
- None
- Translate
Todo
1. upload_file ์คํจ
- ํด๋ผ์ด์ธํธ
- None
- ์๋ฒ
- None
2. translate_ ์คํจ
- ํด๋ผ์ด์ธํธ
- None
- ์๋ฒ
- None
3. delete_file ์คํจ
- ํด๋ผ์ด์ธํธ
- None
- ์๋ฒ
- None
- ํ์ผ ์ด๋ฆ์
test_*.py
๋๋ *_test.py
ํ์์ด์ด์ผ ํจ
- ํ
์คํธ ํจ์๋ ๋ฐ๋์
def test_*():
ํํ์ฌ์ผ pytest
๊ฐ ์ธ์ํจ