pkgs/clan: Fix template listing
This commit is contained in:
@@ -20,7 +20,7 @@ def list_command(args: argparse.Namespace) -> None:
|
|||||||
if not builtin_template_set:
|
if not builtin_template_set:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
print(f"Avilable '{template_type}' templates")
|
print(f"Available '{template_type}' templates")
|
||||||
print("├── <builtin>")
|
print("├── <builtin>")
|
||||||
for i, (name, template) in enumerate(builtin_template_set.items()):
|
for i, (name, template) in enumerate(builtin_template_set.items()):
|
||||||
description = template.get("description", "no description")
|
description = template.get("description", "no description")
|
||||||
|
|||||||
@@ -12,9 +12,9 @@ def test_templates_list(
|
|||||||
with capture_output as output:
|
with capture_output as output:
|
||||||
cli.run(["templates", "list", "--flake", str(test_flake_with_core.path)])
|
cli.run(["templates", "list", "--flake", str(test_flake_with_core.path)])
|
||||||
print(output.out)
|
print(output.out)
|
||||||
assert "Avilable 'clan' templates" in output.out
|
assert "Available 'clan' templates" in output.out
|
||||||
assert "Avilable 'disko' templates" in output.out
|
assert "Available 'disko' templates" in output.out
|
||||||
assert "Avilable 'machine' templates" in output.out
|
assert "Available 'machine' templates" in output.out
|
||||||
assert "single-disk" in output.out
|
assert "single-disk" in output.out
|
||||||
assert "<builtin>" in output.out
|
assert "<builtin>" in output.out
|
||||||
assert "default:" in output.out
|
assert "default:" in output.out
|
||||||
|
|||||||
Reference in New Issue
Block a user