infra-controller/tests/test_config.py
2026-01-23 13:51:52 -05:00

9 lines
289 B
Python

from src.config import load_config
def test_load_config_defaults(tmp_path, monkeypatch):
cfg_path = tmp_path / "cfg.yml"
cfg_path.write_text("{}\n")
monkeypatch.setenv("CONFIG_PATH", str(cfg_path))
cfg = load_config()
assert str(cfg.docker.base_dir).endswith("/opt")