強化 CD Gunicorn 掛載與 metrics 降噪
All checks were successful
CD Pipeline / deploy (push) Successful in 9m26s
All checks were successful
CD Pipeline / deploy (push) Successful in 9m26s
This commit is contained in:
12
tests/test_docker_compose_runtime_mounts.py
Normal file
12
tests/test_docker_compose_runtime_mounts.py
Normal file
@@ -0,0 +1,12 @@
|
||||
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
|
||||
Reference in New Issue
Block a user