1) 客服 Agent 四份交付文档 + 构建脚手架:品牌由包装占位 XX科技 / 旧名 南方财富 统一为南方基金(热线 400-889-8899 / 官网 nffund.com),系统名改为「智能服务系统」; 同步追加 §0.4 修订记录行,工程记录行保留原占位字面以支撑硬编码扫描验收。 2) 开发文档:清理 28 份已作废/残留文档(14 份移出归档 + 14 份仓库副本), 新增《文档规整方案与开发前待决事项-2026-09-17》。 3) 客服agent 四份交付文档首次纳入本分支。
33 lines
1.3 KiB
Python
33 lines
1.3 KiB
Python
from app.model.knowledge import FaqSynonym, KnowledgeMeta
|
|
|
|
|
|
def test_knowledge_meta_maps_baseline_table() -> None:
|
|
assert KnowledgeMeta.__tablename__ == "fin_knowledge_meta"
|
|
columns = {c.name for c in KnowledgeMeta.__table__.columns}
|
|
assert columns == {
|
|
"id", "knowledge_type", "title", "source_file", "minio_path",
|
|
"milvus_collection", "version", "effective_date", "expire_date",
|
|
"content_text", "tags", "reviewer_id", "review_status", "status",
|
|
"created_at", "updated_at",
|
|
}
|
|
|
|
|
|
def test_knowledge_meta_milvus_collection_is_not_nullable() -> None:
|
|
column = KnowledgeMeta.__table__.columns["milvus_collection"]
|
|
assert column.nullable is False
|
|
assert column.type.length == 64
|
|
|
|
|
|
def test_faq_synonym_maps_baseline_table() -> None:
|
|
assert FaqSynonym.__tablename__ == "agent_faq_synonym"
|
|
columns = {c.name for c in FaqSynonym.__table__.columns}
|
|
assert columns == {
|
|
"id", "knowledge_id", "phrase", "normalized_phrase", "phrase_hash",
|
|
"language_code", "source_type", "hit_count", "status", "created_by",
|
|
"reviewer_id", "reviewed_at", "created_at", "updated_at",
|
|
}
|
|
|
|
|
|
def test_faq_synonym_created_by_is_not_nullable() -> None:
|
|
assert FaqSynonym.__table__.columns["created_by"].nullable is False
|