20 lines
524 B
Python
20 lines
524 B
Python
from __future__ import annotations
|
|
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
REPO_ROOT = Path(__file__).resolve().parents[1]
|
|
if str(REPO_ROOT) not in sys.path:
|
|
sys.path.insert(0, str(REPO_ROOT))
|
|
|
|
from scripts.polish import build_polish_system_prompt
|
|
|
|
|
|
def test_polish_system_prompt_loads_humanizer_and_output_hygiene() -> None:
|
|
prompt = build_polish_system_prompt()
|
|
|
|
assert "# Skill: humanizer-cn" in prompt
|
|
assert "CN-1" in prompt
|
|
assert "# Skill: output-hygiene" in prompt
|
|
assert "禁止词" in prompt
|