infra-controller/tests/test_config.py
Jeremie Fraeys 4cd7e72e2b
Some checks failed
Deploy / deploy (push) Failing after 7s
initial infra commit
2026-01-19 16:27:09 -05:00

9 lines
302 B
Python

from infra_controller.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")