Files
verify-invoice-default/tests/test_prereview_rules.py
chenfuqiang 3a80db8a7e
All checks were successful
技能自动化发布 / release (push) Successful in 7s
chore: auto release commit (2026-09-14 22:22:49)
2026-09-14 22:22:49 +08:00

23 lines
626 B
Python

"""预审规则冒烟测试:确保核心预审逻辑可用。"""
import os
import sys
# 确保 scripts 在路径中
scripts_dir = os.path.join(os.path.dirname(__file__), "..", "scripts")
if scripts_dir not in sys.path:
sys.path.insert(0, scripts_dir)
def test_import_constants():
"""常量模块能正常导入。"""
from util.constants import SKILL_SLUG, SKILL_VERSION
assert SKILL_SLUG == "verify-invoice-default"
assert SKILL_VERSION
def test_import_prereview():
"""预审服务能正常导入。"""
from service.prereview_service import run_prereview
assert callable(run_prereview)