772fb6f9d0
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
15 lines
466 B
Python
15 lines
466 B
Python
"""Smoke test that the Celery task is registered and routed correctly."""
|
|
|
|
from backend.app.celery_app import celery
|
|
|
|
|
|
def test_download_source_is_registered():
|
|
name = "backend.app.tasks.download.download_source"
|
|
assert name in celery.tasks
|
|
|
|
|
|
def test_download_source_routes_to_download_queue():
|
|
routes = celery.conf.task_routes
|
|
assert "backend.app.tasks.download.*" in routes
|
|
assert routes["backend.app.tasks.download.*"]["queue"] == "download"
|