update
This commit is contained in:
@@ -12,6 +12,7 @@ def test_load_config_missing_path(tmp_path):
|
||||
assert isinstance(cfg, AppConfig)
|
||||
assert cfg.dotfiles_url == ""
|
||||
assert cfg.container_registry == "registry.tomastm.com"
|
||||
assert cfg.container_runtime == "auto"
|
||||
|
||||
|
||||
def test_load_config_from_yaml(tmp_path):
|
||||
@@ -131,3 +132,12 @@ def test_load_manifest_merges_local_and_overlay(tmp_path):
|
||||
data = load_manifest(local, overlay)
|
||||
assert "profiles" in data
|
||||
assert "packages" in data
|
||||
|
||||
|
||||
def test_load_config_container_runtime(tmp_path):
|
||||
(tmp_path / "config.yaml").write_text(
|
||||
"defaults:\n"
|
||||
" container-runtime: podman-rootful\n"
|
||||
)
|
||||
cfg = load_config(tmp_path)
|
||||
assert cfg.container_runtime == "podman-rootful"
|
||||
|
||||
Reference in New Issue
Block a user