feat: 전달 파일 전용 정책과 AI 표본 품질 감사 추가

This commit is contained in:
HyeongBaeYang committed 2026-08-21 08:44:22 +09:00
1 parent fcfaaab965
commit 480f00702f
5 files changed
+114 -101

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
from scripts.clean_ai_samples import rejection_reason
def test_rejects_assistant_greeting_and_prompt_leak():
body = "삶을 돌아보며 기억을 적었다. " * 30
assert rejection_reason("안녕하세요. " + body, 100, 2000, 0.5) == "assistant_greeting"
assert rejection_reason(body + " 본문만 출력", 100, 2000, 0.5) == "prompt_leak"
def test_accepts_clean_korean_prose():
body = "삶을 돌아보며 그날의 기억과 가족의 목소리를 기록했다. " * 20
assert rejection_reason(body, 100, 2000, 0.5) is None