"""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"