Files
FabledCurator/tests/test_download_source_task.py
T
2026-05-20 20:43:16 -04:00

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"