25 lines
834 B
Python
25 lines
834 B
Python
from pathlib import Path
|
|
|
|
|
|
HTML = (Path(__file__).resolve().parents[1] / "app" / "static" / "index.html").read_text(
|
|
encoding="utf-8"
|
|
)
|
|
|
|
|
|
def test_ai_generation_result_has_visible_frontend_section():
|
|
assert 'id="ai-generation"' in HTML
|
|
assert "renderAiGeneration(data.ai_generation, originalText)" in HTML
|
|
assert "판정 불가 · 모델 준비 전" in HTML
|
|
assert "AI 생성 의심도" in HTML
|
|
|
|
|
|
def test_ai_generation_ui_does_not_present_score_as_a_certain_verdict():
|
|
assert "AI 작성 여부를 확정하지 않습니다" in HTML
|
|
assert "미검증 휴리스틱" in HTML
|
|
assert "ai.available" in HTML
|
|
|
|
|
|
def test_clean_verdict_uses_calibrated_review_summary_percentage():
|
|
assert "data.review_summary.similarity_percent" in HTML
|
|
assert "검색 후보 점수는 침해 확률이 아님" in HTML
|