update for mcp

This commit is contained in:
wangwei
2026-08-06 11:08:46 +08:00
parent 31bbf80aeb
commit b2feaeddb4
40 changed files with 1986 additions and 202 deletions
+14
View File
@@ -33,6 +33,20 @@ def test_process_document_task_is_registered():
)
def test_crawl_regulations_task_is_registered():
"""crawl_regulations_task must be discoverable in the Celery task registry.
This is the scheduled counterpart to the manual "Refresh" button — Beat
has nothing to run on its interval unless this task is registered.
"""
import app.infrastructure.tasks.perception_tasks # noqa: F401 — triggers task registration
from app.infrastructure.tasks.celery_app import celery_app
registered = list(celery_app.tasks.keys())
assert any("crawl_regulations_task" in name for name in registered), (
f"crawl_regulations_task not found in {registered}"
)
def test_document_command_service_has_process_document():
"""DocumentCommandService must expose _process_document method."""
from app.application.documents.services import DocumentCommandService