fix : 매칭 없을 시 판례 미반환 및 판례 판단 조건 조정
This commit is contained in:
1 parent
aaf88d0c1d
commit
c172981c6c
5 files changed
+43
-6
No files matched your search
@@ -65,6 +65,20 @@ def test_copyright_review_returns_only_mobile_tab_fields():
|
||||
assert "score_semantics" not in body
|
||||
|
||||
|
||||
def test_copyright_review_low_omits_precedents_and_summary():
|
||||
"""35자 미만 본문은 일치가 날 수 없으므로 의심 낮음이고 판례·요약이 비어야 한다."""
|
||||
with TestClient(app) as client:
|
||||
resp = client.post(
|
||||
"/v1/plagiarism/review",
|
||||
json={"doc_id": "mobile-low", "text": "창밖으로 보이는 숲은 오늘따라 푸르게 보였다."},
|
||||
)
|
||||
assert resp.status_code == 200
|
||||
legal = resp.json()["legal_judgment"]
|
||||
assert legal["status"] == "low"
|
||||
assert legal["precedent_ids"] == []
|
||||
assert legal["summary"] == ""
|
||||
|
||||
|
||||
def test_batch_flow():
|
||||
with TestClient(app) as client:
|
||||
resp = client.post(
|
||||
|
||||
Reference in new issue
Block a user