Merge pull request 'Templates/list: display templates via exposed nix value' (#4219) from templates-list into main

Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4219
This commit is contained in:
hsjobeki
2025-07-06 12:49:58 +00:00
6 changed files with 56 additions and 45 deletions

View File

@@ -17,7 +17,6 @@ from clan_lib.templates import (
TemplateName,
get_clan_nix_attrset,
get_template,
list_templates,
)
from clan_lib.templates.filesystem import copy_from_nixstore
@@ -96,10 +95,6 @@ def test_clan_core_templates(
expected_templates = ["default", "flake-parts", "minimal", "minimal-flake-parts"]
assert clan_core_template_keys == expected_templates
vlist_temps = list_templates("clan", clan_dir)
list_template_keys = list(vlist_temps.inputs[InputName("clan-core")].keys())
assert list_template_keys == expected_templates
default_template = get_template(
TemplateName("default"),
"clan",