feat(fc3c): download_source Celery task + register in celery_app

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-20 20:43:16 -04:00
parent 82fc6afe53
commit 772fb6f9d0
3 changed files with 91 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
"""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"