feat(platform): close AI expense value loop
Add tenant-safe value, telemetry, connector, commercial, and production-readiness foundations.
This commit is contained in:
@@ -28,10 +28,15 @@ def test_force_sync_queues_ingested_documents_and_creates_hermes_run(tmp_path, m
|
||||
name="管理员",
|
||||
role_codes=["manager"],
|
||||
is_admin=True,
|
||||
tenant_id="tenant-a",
|
||||
)
|
||||
|
||||
with build_session() as db:
|
||||
knowledge_service = KnowledgeService(storage_root=tmp_path, db=db)
|
||||
knowledge_service = KnowledgeService(
|
||||
storage_root=tmp_path,
|
||||
db=db,
|
||||
tenant_id="tenant-a",
|
||||
)
|
||||
uploaded = knowledge_service.upload_document("报销制度", "demo.txt", b"hello", user)
|
||||
document_id = uploaded.id
|
||||
knowledge_service.set_document_ingest_statuses(
|
||||
|
||||
Reference in New Issue
Block a user