Files
ewoooc/tests/test_docker_compose_runtime_mounts.py
2026-04-30 23:50:52 +08:00

14 lines
445 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
assert "- ./static:/app/static:ro" in compose