This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
from pathlib import Path
|
||||
|
||||
import yaml
|
||||
from django.conf import settings
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[2]
|
||||
|
||||
@@ -26,6 +27,15 @@ def test_runtime_is_compatible_with_read_only_container() -> None:
|
||||
assert "for required_host in 127.0.0.1 localhost" in deploy_script
|
||||
|
||||
|
||||
def test_celery_default_queue_is_consumed_by_worker() -> None:
|
||||
compose = yaml.safe_load((ROOT / "docker-compose.yml").read_text(encoding="utf-8"))
|
||||
worker_command = compose["services"]["worker"]["command"]
|
||||
|
||||
assert settings.CELERY_TASK_DEFAULT_QUEUE == "default"
|
||||
queue_index = worker_command.index("-Q") + 1
|
||||
assert "default" in worker_command[queue_index].split(",")
|
||||
|
||||
|
||||
def test_deployment_examples_use_per_platform_mailbox_configuration() -> None:
|
||||
required_keys = {
|
||||
"MAILBOX_CREDENTIAL_KEYS",
|
||||
|
||||
Reference in New Issue
Block a user