feat: 프론트에 GPT 판례 판단 표시

This commit is contained in:
HyeongBaeYang committed 2026-08-18 11:29:04 +09:00
1 parent ee2f85a2d9
commit 3b549dc0c0
2 files changed
+153 -2

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
from pathlib import Path
HTML = Path("app/static/index.html").read_text(encoding="utf-8")
def test_frontend_sends_human_verified_legal_context():
for field_id in (
"legal-work-type",
"legal-access-evidence",
"legal-protected-reviewed",
"legal-rights-verified",
):
assert f'id="{field_id}"' in HTML
assert "legal_context:" in HTML
def test_frontend_renders_llm_legal_judgment_and_safety_fields():
assert 'id="legal-risk"' in HTML
assert "function renderLegalRisk" in HTML
for field in (
"llm_verdict",
"llm_confidence",
"llm_matched_precedent_ids",
"supporting_reasons",
"counter_reasons",
"missing_factors",
"disclaimer",
):
assert field in HTML
assert "escapeHtml(item)" in HTML
assert "법률상 침해 확정이 아닙니다" in HTML