9 lines
289 B
Python
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")
|