Files
ewoooc/tests/test_docker_compose_runtime_mounts.py
OoO 73561efa7a
All checks were successful
CD Pipeline / deploy (push) Successful in 9m26s
強化 CD Gunicorn 掛載與 metrics 降噪
2026-04-30 09:13:36 +08:00

13 lines
395 B
Python

from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
DOCKER_COMPOSE = ROOT / "docker-compose.yml"
def test_momo_app_mounts_gunicorn_config_for_sync_deploys():
compose = DOCKER_COMPOSE.read_text(encoding="utf-8")
assert 'command: ["gunicorn", "--config", "gunicorn.conf.py", "app:app"]' in compose
assert "- ./gunicorn.conf.py:/app/gunicorn.conf.py:ro" in compose