15 lines
503 B
Python
15 lines
503 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
|
|
assert "- ./web/static:/app/web/static:ro" in compose
|