update for mcp
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user