修复合规问句被误判为收益承诺
This commit is contained in:
@@ -101,3 +101,19 @@ def test_governance_uses_the_exemption() -> None:
|
||||
)
|
||||
assert promise.result.transfer_required is True, "真实承诺被放过"
|
||||
assert "需要人工核实" in promise.result.text
|
||||
def test_question_context_is_exempted() -> None:
|
||||
"""询问产品能否保证收益是核实问题,不是作出收益承诺。"""
|
||||
assert first_violation(
|
||||
"该产品是否可能造成较大本金损失,能否保证收益?",
|
||||
ZERO,
|
||||
) is None
|
||||
assert first_violation("请问该产品保证收益吗?", ZERO) is None
|
||||
assert first_violation(
|
||||
"您是否了解产品可能造成较大本金损失,且不保证收益?",
|
||||
ZERO,
|
||||
) is None
|
||||
|
||||
|
||||
def test_question_exemption_does_not_release_real_promise() -> None:
|
||||
"""询问语境只豁免问句,明确承诺仍然必须被拦截。"""
|
||||
assert first_violation("该产品保证收益,请放心购买。", ZERO) == "保证收益"
|
||||
|
||||
Reference in New Issue
Block a user