fix: inject WeChat settings into API container

This commit is contained in:
duanshuwen committed 2026-08-27 14:40:10 +08:00
1 parent 8c253918d9
commit 0803c9ed5b
2 files changed
+13

No files matched your search

@@ -0,0 +1,11 @@
from pathlib import Path
COMPOSE_PATH = Path(__file__).parents[1] / "docker-compose.yml"
def test_api_compose_forwards_wechat_miniapp_settings_from_host_environment():
compose = COMPOSE_PATH.read_text(encoding="utf-8")
assert "WECHAT_MINIAPP_APPID: ${WECHAT_MINIAPP_APPID:-}" in compose
assert "WECHAT_MINIAPP_SECRET: ${WECHAT_MINIAPP_SECRET:-}" in compose