feat: 전달 파일 전용 정책과 AI 표본 품질 감사 추가
This commit is contained in:
1 parent
fcfaaab965
commit
480f00702f
5 files changed
+114
-101
No files matched your search
@@ -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
|
||||
@@ -1,9 +0,0 @@
|
||||
from scripts.download_life_writing_drive import drive_kind
|
||||
|
||||
|
||||
def test_drive_kind_parses_file_and_folder():
|
||||
assert drive_kind("https://drive.google.com/file/d/abc123/view") == ("file", "abc123")
|
||||
assert drive_kind("https://drive.google.com/drive/folders/xyz789?usp=drive_link") == (
|
||||
"folder", "xyz789"
|
||||
)
|
||||
assert drive_kind("https://example.com") is None
|
||||
Reference in new issue
Block a user