from __future__ import annotations from pathlib import Path ROOT_DIR = Path(__file__).resolve().parents[4] APP_SCRIPT = ROOT_DIR / "infra" / "scripts" / "app.sh" def test_worker_commands_use_taskiq() -> None: content = APP_SCRIPT.read_text(encoding="utf-8") removed_runner = "uv run c" "elery" assert "uv run taskiq worker" in content assert "core.taskiq.app:critical_broker" in content assert "core.taskiq.app:default_broker" in content assert "core.taskiq.app:bulk_broker" in content assert 'pgrep -f "taskiq.*worker"' in content assert 'pkill -f "taskiq.*worker"' in content assert removed_runner not in content